Re: presenting a failed form for re-entry.

From: Date: Thu, 07 Sep 2000 10:39:45 +0000
Subject: Re: presenting a failed form for re-entry.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15684@lists.php.net to get a copy of this message
I do it like this: Set all input-field-values to something like: <INPUT TYPE="TEXT" NAME="Country" VALUE="<!--COUNTRY-->"> The first time the form is called, replace all <!--...--> with an empty string. The next time the form is called, make every field you got to <!--...--> (Country becoms <!--Country-->) and replace it with the value of the field. Regards Martin peter_sands@my-Deja.com wrote: > > hello, > I have created a form with various input fields, > a php script then validates these fields. > What I want to do is present the original form with say a '*', against the failed > fields. What is the best way to do this ?. > > thanks > Peter. > > --== Sent via Deja.com http://www.deja.com/ ==-- > Before you buy. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#15684) next »