Re: Form data is not "remembered"

From: Date: Wed, 24 Jan 2001 19:12:52 +0000
Subject: Re: Form data is not "remembered"
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-36455@lists.php.net to get a copy of this message
> If the form page is not being cached, it would probably get reloaded > when they clicked back, thus losing the data. > > I'd suggest redrawing the form with the fields populated and with the > appropriate error messages. Then you don't need to mess with caches or > sessions for that matter, and the user doesn't need to take an extra > step to get back to the form. yep, best way is to move the control of your form into the php script itself, so the script can spit up the form with errors, saying "you screwed this, and that up" instead of making them go back, which 90% of the time will force them to re-enter the data, and we all know how much that sucks :) in short, don't use the php script like most people use cgi scripts. have it control the entire peocess. -alex

« previous php.general (#36455) next »