Redisplaying form after submit error
Posted on 1998-02-17
Hi(sorry for the novel),
Currently my CGI displays an error message when there is an incorrect value submitted in the form and then asks the user to go back and enter the correct information into the form. This doesn't always work well with certain browsers. I would like to re-display the form below my error message and ensure that the fields they filled in are still there.
I thought of using the array of values obtained from the submittion and setting the form values to those values, but I have one sticky limitation: I have designed the cgi so that many areas of our website can use it and so that the various areas can customize a section that contains radio buttons for category selection. To remain this flexible, I would have to capture that section from the submitting page and rewrite, setting the user-checked value to checked...
Is there a simpler way to redisplay the form with it's current values, including the appropriate error message, without have to go through these hoops?
Thanks for any help...