Re: validating form data...
| From: | Toke Herkild | Date: | Mon, 22 Oct 2001 12:59:19 +0000 |
| Subject: | Re: validating form data... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71825@lists.php.net to get a copy of this message | ||
Very embaressing....
The error where not in my if-statement... but in what I did later on in the
else-clause...
so boys and girls... remember you do not set variables like this:
$Var = = "Avariable"; // Doesn't work..... (slap me!)
the correct is : $Var = "Avariable";
Sorry for vasting your time...
And Thanks for all the help...
Toke.
"Toke Herkild" <cafe@hodclub.dk> skrev i en meddelelse
news:20011022115945.45960.qmail@pb1.pair.com...
> 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...
>
>