Resubmitting form after error
Posted on 1998-07-14
My cgi is in perl on a unix webserver. I have a special configuration where I allow area publishers to have their own custom areas on their feedback pages then they can submit to my cgi.
I wish to add a feature that re-displays the form when a field is missed or other error occurs so that the user does not need to go back and, depending on their browser/configuration, re-type *all* their information.
Everything is working correctly including re-displaying the custom sections and the previous values of the fields that were entered correctly, radio buttons that were checked, etc.
But I am encountering, I fear, a fatal problem.
When I go to re-submit the form I get the "Document contains no data" error in Netscape and a blank screen in Explorer.
I'm assuming this is related to the data that is displayed in the browser(the new page) being lost when the cgi is again accessed.
Any help here would be greatly appreciated, if you need to see code, please be specific on the part you wish to see and I will display it(cause the script is rather long :-).