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" <[EMAIL PROTECTED]> 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/
  [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to