Re: form with two actions
| From: | Cesar Aracena | Date: | Wed, 13 Nov 2002 05:11:41 +0000 |
| Subject: | Re: form with two actions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124153@lists.php.net to get a copy of this message | ||
Hi Scott,
what you want to do can be acomplished just by telling php what to do in
order... for example run the $query to insert the data into the DB and after
that, run a mail function that sends the mail. IF you want to be more
elegant in your scripting, do the mailing within an IF clause so the mail
will be sent ONLY and ONLY IF the data was succsesfully stored into the DB.
Cheers, Cesar
----- Original Message -----
From: "Scott" <gildedpage@comcast.net>
To: "php-general" <php-general@lists.php.net>
Sent: Wednesday, November 13, 2002 2:05 AM
Subject: [PHP] form with two actions
> Hello
> I would like to know if it is possible to use Php to make a form perform 2
> actions by having the user click on a single submit button. For instance,
> send data to a database and email it simultaneously. I would prefer not
to
> use javascript. If someone could point me to an example I would
appreciate it
>
> Thanks,
> S.W.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>