CGI from another scriptby rsiedl (Friar)
|on Sep 02, 2005 at 13:45 UTC||Need Help??|
rsiedl has asked for the
wisdom of the Perl Monks concerning the following question:
I'm attempting to call a .cgi script from another one of my scripts and for some reason it is only recognising the first var I pass to it.
and some_script.cgi is only seeing the results from var blah
Anyone got any ideas?
Update: I've done a bit more investigating and it appears that the script being called from the original script is using the var's from that original script.
i.e. some_script.cgi?blah=foo&larh=bar will pass the vars blah and larh onto the script that some_script.cgi calls...
I havent been able to work out how to prevent that and specify my own when I call the script. Anyone?
Here's some code that explains more clearly than I:
The only way I can get var1 and var2 to print is by calling script1.cgi?var1=one&var2=two even though I define that in script1 where I call script2.