RE: [PHP] Retain form values...
| From: | Shane McBride | Date: | Thu, 18 Mar 2004 22:50:06 +0000 |
| Subject: | RE: [PHP] Retain form values... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180924@lists.php.net to get a copy of this message | ||
How about passing the form variables to a hidden field on the next page? I
used this for several page forms before. Also, sessions work well.
Shane
-----Original Message-----
From: Firman Wandayandi [mailto:fwd@vfemail.net]
Sent: Thursday, March 18, 2004 3:43 PM
To: jvilla@isdesigndev.com
Cc: PHP-GEN
Subject: Re: [PHP] Retain form values...
Hi Jonathan,
You can do this, with one file, display a form, proceed the fields, and fill
the field form objects with the value. If you use separate page in my mind
is impossible.
Regards,
Firman
----- Original Message -----
From: "Jonathan Villa" <jvilla@isdesigndev.com>
To: <php-general@lists.php.net>
Sent: Friday, March 19, 2004 3:01 AM
Subject: [PHP] Retain form values...
> I want to be able to submit the page to another page vs PHP_SELF. On
> that page I want to be able to validate the form, and if it fails,
> return the user to the previous page. Now that's easy, but the catch is
> that I want to retain/repopulate their field values.
>
> I was thinking of forcing a history.back if possible, but would rather
> use some server side code. I tried researching what can be done with
> sending headers, but I don't want to use a GET method. I want to use
> POST.
>
> thoughts?
>
> --
> 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