From: Vlad Ciubotariu Date: 2007-04-04T03:25:05+09:00 Subject: Re: pass parameters on a redirct You must save them in the user's session. Rails has this it's called the flash, temporary storage between two pages. I were you I would really consider ruby on rails for web programming, it's not a steep learning curve and you solve your problems with much fewer lines of code. vlad On Tue, 03 Apr 2007 11:01:47 -0700, JoeyP wrote: > 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