hellorghh !!! I think that :
if ((email_is_valid($Email)) && ($Name != "") && ($Message != "")){ do stuff ... } ...should be better . (&&, not "and") "Toke Herkild" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > 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... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > (°- Nayco. //\ [EMAIL PROTECTED] v_/_ http://nayco.free.fr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]