On Sun, 11 Nov 2007 02:05:02 -0500, Zeuxis Lo wrote:
i use ruby to write a cgi …
but i can not use the CGI.new to get the “sk=go” value… who can help me
to fix the problem ?
It can’t, because you made a POST query, so it’s using the [] operator
to
store POST data. If you want to access the query string, you can still
do
so with CGI#query_string, but you’ll have to decode it yourself.
(I use this much more simply: I have a script “testframework” that I
call
as testframework?experimentname – no name=value and encoding stuff to
parse – and testframework has several forms that post back to itself
using the same URL)
–Ken
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.