From: David Heinemeier Hansson Date: 2003-07-21T00:39:08+09:00 Subject: Parsing POST and GET variables simultaneously? Isn't it possible to get variables from POST and GET simultaneously? Consider the script test.rbx below: require 'cgi' cgi = CGI.new print "HTTP/1.0 200 OK\r\nContent-type: text/html\r\n\r\n" if cgi.params.empty? then puts "" puts "
" puts "" puts "
" else print cgi.params.inspect end Calling test.rbx?valueFromGet=here gives me: {"valueFromPost"=>["there"]} Calling text.rbx and entering here "here" in the input gives me: {"valueFromPost"=>["here"]} ...where I would have expected: {"valueFromPost"=>["here"],"valueFromPost"=>["there"]} Any ideas on how to get the latter? -- David Heinemeier Hansson, http://www.loudthinking.com/ -- Thoughts for free http://www.nextangle.com/ -- Thoughts for hire