Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Passing results to a script after form element validation

by Anonymous Monk
on Apr 14, 2004 at 19:01 UTC ( [id://345157]=note: print w/replies, xml ) Need Help??


in reply to Passing results to a script after form element validation

  1. 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.

  2. 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>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://345157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-19 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found