Re: Keeping form fields populated

From: Date: Thu, 15 May 2003 21:11:40 +0000
Subject: Re: Keeping form fields populated
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147809@lists.php.net to get a copy of this message
On Thu, 2003-05-15 at 14:28, Steve Keller wrote: > At 5/15/2003 02:15 PM, Brian V Bonini wrote: > > > Is there a way to keep form fields populated after a user submits a form > > via straight HTML or do I need to do this with PHP. > > What do you mean "via straight HTML" ? You have to feed it back to the > browser somehow. You can just echo the posted values in your forms. > > <input type="text" name="myVariable" value="<? echo > $_POST['myVariable']; ?>"> Cool, but how would you still get a reset button to function like this to clear it out as well if so desired?

« previous php.general (#147809) next »