Re: double "posts"

From: Date: Fri, 16 Feb 2001 23:07:18 +0000
Subject: Re: double "posts"
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-6703@lists.php.net to get a copy of this message
You can have multiple SUBMIT buttons (one for 'save', one for 'cancel' etc). if you have a button called 'SAVE', then a varable called save will be set in the script. eg, have the html: <INPUT TYPE=SUBMIT NAME=SaveRecord VALUE="Save Your Details"> <INPUT TYPE=SUBMIT NAME=EditRecord VALUE="Edit Your Details Again"> on the initial page. then you can do, on the script which is called: if ($SaveRecord) { echo "saving record ...."; .... echo "done"; } elseif ($EditRecord) { echo "Enter your details again..."; echo "<P>Username: <INPUT TYPE=TEXT NAME=Username VALUE=$Username>"; } else { echo "you chose to do something else." } Siggy ----- Original Message ----- From: "Marc Bragg" <msbjustice@mindspring.com> To: "phobo" <antiphobo@paradise.net.nz> Sent: Saturday, February 17, 2001 10:42 AM Subject: Re: [PHP-DB] double "posts" > Well, I have a form that user inputs information to, then when post is > pressed, it submits info to database. I wanted the information first to be > submitted to a new screen to review the information (presuming most people > make mistakes on their first try), and then click back to revise if not > correct, or simply submit then if correct. > > phobo wrote: > > > No you cant. > > > > What are you trying to do? > > > > Siggy > > > > ----- Original Message ----- > > From: "Marc Bragg" <msbjustice@mindspring.com> > > To: <php-db@lists.php.net> > > Sent: Saturday, February 17, 2001 9:53 AM > > Subject: [PHP-DB] double "posts" > > > > > > > > Is it possible to post to two forms with one click, one post command? > > > What would statement look like? > > > > > > > > > -- > > > PHP Database Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-db-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#6703) next »