Re: Can I show input data whrn back to the Input Form?
| From: | Justin French | Date: | Thu, 29 Aug 2002 09:21:35 +0000 |
| Subject: | Re: Can I show input data whrn back to the Input Form? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114480@lists.php.net to get a copy of this message | ||
Relying on the back button isn't good... the data may or may not be there
when they return.
However, you CAN provide them with a button "change", and POST the data to a
form... where they modify their data, the form needs to echo the POST data
back into the form, eg:
<FORM action="validate.php" action="POST">
<INPUT type="text" name="username"
value="<?=$_POST['username']?>">
</FORM>
selects, checkboxes and some other things are a little more tricky, but
you'll figure them out... search the archives too... it's been asked 1000's
of times :)
Justin French
on 29/08/02 7:02 PM, Hakkan Lui (hakkan@vtc.edu.hk) wrote:
> Dear all,
>
> In my php program, when user click "submit" on a form, it comes to a
> confirmation page, showing what the user entered in the form.
>
> If the user find want to re-enter the information, he press "Back" on the
> browser. Then it comes back to the form, with empty input.
>
> I want to ask:
> Can the form show the previously input data, when the user goes "back" from
> the confirmation page?
> If no, any other method to do that?
>
> Thanks for your help.
>
>
> Regards,
> Hakkan Lui
>
>