J
JoeyP
The client presses a submit button.
The path goes to a .cgi script that gathers the form params.
How can I pass those parameter onto another page?
EX.
#!/usr/bin/ruby
# *-ruby-*-
require 'cgi'
cgi = CGI.new
def redirect( new_page )
print "Location:#{new_page}\n\n"
end
all_params = cgi.params
if ( !all_params.include? 'select')
redirect('selectPage.rhtml')
else
redirect('genPage.rhtml')
end
How do I pass 'all_params' to page I'm redirecting to?
Thanks
The path goes to a .cgi script that gathers the form params.
How can I pass those parameter onto another page?
EX.
#!/usr/bin/ruby
# *-ruby-*-
require 'cgi'
cgi = CGI.new
def redirect( new_page )
print "Location:#{new_page}\n\n"
end
all_params = cgi.params
if ( !all_params.include? 'select')
redirect('selectPage.rhtml')
else
redirect('genPage.rhtml')
end
How do I pass 'all_params' to page I'm redirecting to?
Thanks