Re: How do I keep form inputs from being cleared - Please Help!

From: Date: Wed, 06 Feb 2002 00:03:35 +0000
Subject: Re: How do I keep form inputs from being cleared - Please Help!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83656@lists.php.net to get a copy of this message
http://www.thickbook.com choose the tutorial for a form with custom error messages. Miles Thompson At 06:40 PM 2/5/2002 -0500, SpamSucks86 wrote:
I have a registration form and if a user enters bad information and the php script generates an error, I want the user to be able to hit back and have his inputs still there. Most websites I've ever used do this, but for some reason, my form loses all its data when the back button is pushed. This doesn't seem like something unique to PHP, but I thought maybe you guys could shed some light. Maybe a header which instructs the browser to cache it? Btw, I plan on having the script reprint the form with the old values anyway, but for reference I'd really like to know because I haven't been able to figure it out. Thanks for any help! =) -Me


« previous php.general (#83656) next »