Re: mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




if($empresa == "" || $nombre == "" || $telefono == "" || $mail == "" ||
$asunto == "" || $mensaje == "")
{

<snip>

I want to know somthing: this "||" operator is OR, and de logic in my code
is: if one of variables is empty and the rest not send the mail, it isnt?

Looks like it to me.

If I want all field full with data I must to use "&&" AND operator, it isnt?
Well, if the answer is YES, I tell you: I test with "&&" and send it anyway.

It would only not send if *ALL* were empty this way.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux