Re: Keeping form fields populated

From: Date: Thu, 15 May 2003 21:48:41 +0000
Subject: Re: Keeping form fields populated
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-147826@lists.php.net to get a copy of this message
On Thu, 2003-05-15 at 17:28, Steve Keller wrote: > At 5/15/2003 05:11 PM, Brian V Bonini wrote: > > > Cool, but how would you still get a reset button to function like this > > to clear it out as well if so desired? > > If the field is not disabled, users can still change the contents, that > includes using the reset button. Once it's submitted and those values are set via PHP echo the reset button will not clear out those fields. Even if you then proceed to change them reset will only set them back to the state they were in when the page was loaded it will not clear them out. Which makes sense as it's default value is now what's contained on the value field. So, I guess what I need to do is have reset reload the form (which I know how) and empty out all the $vars... ???

« previous php.general (#147826) next »