dropdown not validating
Posted: Thu Sep 23, 2010 9:27 am
Im trying to validate my dropdown and I cant get why it wont validate,
the name of the dropdown's posted value is $areaReported. Its not checking to see that the user has anything other that "Select Area" selected and I cant figure out why
thanks in advance for the assistance!
the name of the dropdown's posted value is $areaReported. Its not checking to see that the user has anything other that "Select Area" selected and I cant figure out why
Code: Select all
<?php
if (($questnum >= 1) && ($areaReported != "Select Area")){
echo $num_toggle_off;
}
else if(($questnum <= 1) || ($questnum >10) || ($areaReported == "Select Area")){
echo $num_toggle_on; "<br>";
echo "<p style=\"color:red\">Please enter valid number of records and/or Area to report on</p>";
}
?>