Hello,
On 08/04/2004 12:02 AM, Ray Torres wrote:
I would appreciate any help with the following problem.
I have several different htm pages with (simalar) forms that are
processed by the same
PHP script. If there is data missing on the form, the script displays
an error page (using the header() function) and informs the user to
press
the browser's "Back" button. The problem is that when the user goes
back
to the form's htm page, all the fields are blank. I would like all
the fields to
contain the data the user previously entered, so that only the
missing data
needs to be entered.
Nothing stops you from generating, validating and processing the forms
in the same page. This way you do not need any redirection.
You may want to take a look at this forms generation and validation
class that lets you do what you want in the same page. You can even
define the form presentation from templates and have the class load any
submitted values and validate them either on the client side and server
side.
If there any invalid values, the class can present the form again
with the previously submitted values using the same script and form
templates.
http://www.phpclasses.org/formsgeneration
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html