Re: [PHP-DB] mail

[email protected] (Chris)
Newsgroups php.db
Message-ID <[email protected]>
> 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.