[PHP] Re: validating form data...

2001-10-22 Thread Mike Frazer
To verify the existence of both a name and message, try a test similar to the following: if ((email_is_valid($email)) && (strlen($name) > 0) && (strlen($name) > 0)) { ... } I've found that using "" in a conditional block tends to be a bit buggy. strlen() seems to be pretty solid for verifying th

[PHP] Re: validating form data...

2001-10-22 Thread Toke Herkild
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.