From: TAKAHASHI Masayoshi Date: 2001-09-19T19:56:28+09:00 Subject: [ruby-talk:21385] Re: Suggestions for new CGI lib matz@ruby-lang.org (Yukihiro Matsumoto) wrote: > Then what if there are multiple values for a form name, for example: > > GET /script.cgi?user_var=foo&user_var=bar HTTP/1.1 > Host: www.example.com > Connection: close > > What should be returned for cgi.request["user_var"]? Possible > solution can be any of: > > * "foo\0bar" (Perl's cgi-lib.pl and cgi-lib.rb) > * ["foo", "bar"] (cgi.rb) > * # (Python's cgi.py) > * or something else * "bar" (PHP4) But when you use "[]" as variable name, like "/script.cgi?user_var[]=foo&user_var[]=bar", you get: * ["foo", "bar"] (PHP4) Is it useful? Regards, TAKAHASHI Masayoshi