Jun 22, 2012, 3:39 PM
I have a situation where I am calling a single signon.cgi script with information posted to it.
Using require to redirect a cgi script
What I need to do is, if the parameter is X, I need to execute custom_signon1.cgi, if the param passed is Y, I need to execute custom_signon2.cgi.
I've found that if I change custom_singon1.cgi to custom_signon1.pm, I can check the param, and then do:
What happens seems to be exactly what I want. the CGI parms are still part of the namespace, so the modules I include can re-read the cgi vars and use them.
I would like some opinions on this method, I dunno if there is a better way. The brute force way is to simply generate an html form with hidden params and then post to the file I want to redirect to.
(This post was edited by srhadden on Jun 22, 2012, 3:40 PM)