Re: working with forms
| From: | Ian Mantripp | Date: | Wed, 18 Jun 2003 17:42:02 +0000 |
| Subject: | Re: working with forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152033@lists.php.net to get a copy of this message | ||
on Wed, Jun 18, 2003, Matt Palermo wrote:
>I have a forms page that a user will fill out. When it is submitted, it
>checks to see if any of the field entries entries are empty, and if so,
>it has a die() statement that has a link (javascript:history.back())
>which sends the user back to the form page. However, when they go back
>to the form page, all the entries they made are erased and they need to
>redo everything. Is there and easy way to have them go back with all
>their previously inputted data still filled in? Let me know.
I'm a newbie to PHP so this may not be the correct way to do this, but it
works:
<input type="text" name="firstname" size="24" value="<?
echo
$_POST['firstname'];?>">
Ian