Re: Forms pages
| From: | Martin | Date: | Thu, 14 Sep 2000 07:51:10 +0000 |
| Subject: | Re: Forms pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16733@lists.php.net to get a copy of this message | ||
Glover George wrote:
>
> Ok. I'm gonna refer to the pages as 1, 2, and 3. I'm on page 1 and I press
> a form submit button that takes me to page 2. Page 2 has input areas and I
> fill em in (like name, address type stuff). I then press the submit button
> on page 2 to go to page 3. Well, on page 3 for instance, lets say they
> didn't enter all the required data on page 2 and we (on page 3) want to send
> them back to page 2. How can I keep page 2 populated without having to
> resend the data (via form) back to page 2? Is this becuase of using the
> post method, or is it just somthing that's browser specific?
Just do the following: If page 3 detects an error, call
Header("Location:http:/...../page2.php?name=$name&country=$country...
and so on. On page2.php $name becomes the value of name automatically.
Martin