in reply to Passing results to a script after form element validation
- Do the validation and processing within the same script. This would be my perferred choice. If validation fails, print an error and the form again. If the validation is successful, process the request and print a results page.
- Access script2.cgi HTTP GET rather than a POST. Just put your CGI variables in to a query string and append on to the end of the URL for the second script. Then put that URL into a meta refresh tag in the HTML header e.g.
<HEAD>
<META HTTP-EQUIV="REFRESH" CONTENT="0;url=script2.cgi?searchfield=valu
+e">
</HEAD>
|