Re: reposting data into forms after confirmation screen
| From: | Dean E. Weimer | Date: | Mon, 07 Jul 2003 22:27:46 +0000 |
| Subject: | Re: reposting data into forms after confirmation screen | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154268@lists.php.net to get a copy of this message | ||
Alternately, you could place code similar to this in your first form.
echo "<input type=\"text\" name=\"data\"";
if ( isset($_POST['data']) ) {
echo "value=\"".$_POST['data']."\";
}
echo " />"
When you first access this form it would output:
<input type="test" name="data" />
And when returning, assuming that your edit button is on a form posting
the data:
<input type="text" name="data" value="Some Data..." />
> You could save all of the form data in session variables, when they
> click edit re-populate the form fields with the session data.
>
>>>> "Artoo" <artoo_s@hotmail.com> 07/07/03 04:00PM >>>
> Anyone know where I can view some sample code that does the following?
>
> When the user clicks on SUBMIT, they are taken to a confirmation
> screen
> which they can click an EDIT button or SUBMIT button. If they click on
> the
> EDIT button they are taken back to the first form. How do you repost
> the
> data the user entered into the first form, as I get a empty form when
> I
> click on EDIT?
>
> Thanks
>
>
>
> --
> 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
>
>
--
Thanks,
Dean E. Weimer
http://www.dwiemer.org/
dweimer@dweimer.org