Ok, I am making a "Gay Test". I have the form action to a PHP file, but when I want to calculate the "Gayness", it shows up as zero!
Consider the following code:
This is just an example of what I want, but even when I do that, it prints "You are 0 % Gay!" to the screen instead of 1...
The form that it's recieving input from is all radio buttons, did I do the "if" thing wrong or something?
I am going to post this unfinished "Gay Test" online, so you can see what the from looksa like.
URL : http://projectx.megabytestored.com/unrelated/gaytest.html
Sikes
Consider the following code:
PHP:
<?php
$Gayness = 0;
if(Question1 == "gay") { $Gayness++; }
echo "You are $Gayness % Gay!";
?>
This is just an example of what I want, but even when I do that, it prints "You are 0 % Gay!" to the screen instead of 1...
The form that it's recieving input from is all radio buttons, did I do the "if" thing wrong or something?
I am going to post this unfinished "Gay Test" online, so you can see what the from looksa like.
URL : http://projectx.megabytestored.com/unrelated/gaytest.html
Sikes