From: ara.t.howard@... Date: 2007-04-04T04:34:43+09:00 Subject: Re: pass parameters on a redirct On Wed, 4 Apr 2007, JoeyP wrote: >> harp:~ > cat a.rb >> require 'cgi' >> >> class Hash >> def query >> map{|k,v| [CGI.escape(k), CGI.escape(v)].join('=')}.join('&') >> end >> end >> >> cgi = CGI.new >> >> def redirect( new_page , params) >> print "Location:#{ new_page }?#{ params.query }\n\n" >> end >> >> if ( !all_params.include? 'select') >> redirect('selectPage.rhtml', cgi.params) >> else >> redirect('genPage.rhtml', cgi.params) >> end >> >> -a >> -- >> be kind whenever possible... it is always possible. >> - the dalai lama- Hide quoted text - >> >> - Show quoted text - > > I'm not familiar with 'harp:~ > cat a.rb ' > can you expand? ?? that's just my prompt -a -- be kind whenever possible... it is always possible. - the dalai lama