Re: form with two actions

From: Date: Wed, 13 Nov 2002 06:12:56 +0000
Subject: Re: form with two actions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124164@lists.php.net to get a copy of this message
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" <gildedpage@comcast.net> To: "php-general" <php-general@lists.php.net> 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 > >

« previous php.general (#124164) next »