D
David Susco
I'm looking for a way to add parameters to a cgi object and then
redirect the user to another cgi script off site.
-----
require "cgi"
cgi = CGI.new
cgi.params['new_param'] = "new_value"
...
cgi.header("status" => "302",
"location" => "offsite_script.cgi")
-----
I can add parameters no problem as above, but the offsite script isn't
receiving the added parameters. Is this because the redirect is
happening before the parameters are being added? Is there another way to
do this?
Thanks,
Dave
redirect the user to another cgi script off site.
-----
require "cgi"
cgi = CGI.new
cgi.params['new_param'] = "new_value"
...
cgi.header("status" => "302",
"location" => "offsite_script.cgi")
-----
I can add parameters no problem as above, but the offsite script isn't
receiving the added parameters. Is this because the redirect is
happening before the parameters are being added? Is there another way to
do this?
Thanks,
Dave