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" <[EMAIL PROTECTED]>
To: "phobo" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]