If you want php to do it in the remote server (your case), of course, you do not have to use javascript //
Just do like this if (isset($_POST['submit'])) // to verify that browser are sending something correctly { // --> record posted data into database and after // --> send mail } But if you want 2 actions in the client-side browser, you should use javascript, for example you want first to check data and simultaneously, display progress bar (animated gif), like this onsubmit="return(send_data(document.form));" and the on the function send_data() you have 1. do action 1 2. do action 2 3. return true ----- Original Message ----- From: "Scott" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, November 13, 2002 4:05 PM 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