Re: Send_mail function
| From: | R a n d y S e s s e r | Date: | Fri, 11 Aug 2000 16:00:08 +0000 |
| Subject: | Re: Send_mail function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11347@lists.php.net to get a copy of this message | ||
elseif ($chr == "B|C|D") should read
elseif ($chr == "B" || "C" || "D");
if that is supposed to be an or statement
don't quote me on that, I am just an amateur
_________________________________________
r a n d y || s e s s e r
http://www.troikawebdesign.com
> From: david@datajo.no ("David Tandberg-Johansen")
> Newsgroups: php.general
> Date: 11 Aug 2000 08:26:47 -0700
> Subject: [PHP] Send_mail function
>
> Hallo All!!
>
> I am trying to send a mail to an different mail acount based on which
> variable $chr has, but it seems to only go strait to the last ELSE and
> print.
>
> Could anyone please give me som feedback,....Thank's
>
> ************************************
> function send_mail()
> {
> if ($chr == "A")
> {
> send_to_me();
> }
> elseif ($chr == "B|C|D")
> {
> send_to_you();
> }
> else
> {
> print("The are no characters to report");
> }
> }
> ************************************
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>