validating form data...

From: Date: Mon, 22 Oct 2001 12:07:35 +0000
Subject: validating form data...
Groups: php.general 
Request: Send a blank email to php-general+get-71813@lists.php.net to get a copy of this message
I've made a script which ought to validate if there is data in the fields or not... but it doesn't seem to work... the validation is following: if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){ do stuff ... } But even if I submit an empty form it executes "do stuf..." I have tried to put an empty space into the $Name and $Message test but that doesn't seem to do any difference either...

« previous php.general (#71813) next »