Re: Send_mail function
| From: | Chris | Date: | Fri, 11 Aug 2000 16:24:52 +0000 |
| Subject: | Re: Send_mail function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11351@lists.php.net to get a copy of this message | ||
Hi,
Mabye you are having the same problem I had, but I found that I could not user double quotes in
comparison statements.
if ($chr == "A") Does not work for me.
if ($chr == 'A') Will work for me.
> 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");
> }
> }