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" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
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
>


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

Reply via email to