From: Ben Giddings Date: 2004-06-24T04:45:29+09:00 Subject: Re: Why doesn't this work? (CGI) Orion Hunter wrote: > Using eruby/mod_ruby on an apache webserver. In the following code, I > would expect to see both > > "Hello World" and "val" > > but I only get hello world. Why is that? > >>> > > >
> > <% > cgi = CGI.new > puts cgi['testA'] > puts cgi['key'] > %> > > I don't know the internals of the CGI module well, but you're mixing a query string and a HTTP POST. Does it work if you change method=post to method="GET"? I'm sure there's a way to get both the query string and the posted variables out, though you might need to do some manual parsing of the query string. In general though, you shouldn't be mixing query string arguments and POSTs. Ben