Hi ppl,
i have a HTML form, with a drop down menu. When a user selects a certain option i.e. 1a from drop down menu i.e. qone, the script then adds 1 to a respective variable. Now, the script is shown below, when i run it, no errors appear... but if i select "1a" the script doesn't detect it and so doesn't use the if and so the percentage it gives is still 0% not 10%.
Any ideas? Do i have the HTTP_POST incorrect? Or should i be using GET or wot? Plz! This is driving me crazy!
Thanks,
Demonic Foetus
----------------SCRIPT--------------------------------
<?
if( $HTTP_POST_VARS["qone"] == "1a")
{
$ideal + $one;
}
if($HTTP_POST_VARS["qone"] == "1b")
{
$average + $one;
}
if( $HTTP_POST_VARS["qone"] == "1c")
{
$die + $one;
}
echo "<p>".($ideal 10)." % ideal for the future</p>";
echo "<p>".($average 10)." % just about survive</p>";
echo "<p>".($die * 10)." % likely to be executed</p>";
?>