Hi,
I am trying to trap for null values submitted from a web form to this script, but when the user submits the value of "0" for the $evaluatorScore, it fails the test below and sets the $error value. If I type in "00" then it works fine. I want to allow the user to submit a zero value.
if (!$evaluatorId || !$evaluatorScore || !$id || !$scored ) {
$error = "I'm sorry. You did not fill in all of the fields.".$evaluatorScore;
if ($evaluatorScore == "0") {
$error == "";
}
} else {
What am I missing here? I confirmed the zero value is passed correctly to the script by echoing the $evaluatorScore variable, what am I missing? Besides sleep?
Thanks,
Eric