You've only passed one parameter. The first "foo=1" sets the foo parameter to 1. The second "foo=3" re-assigns foo to 3. If you want two parameters to be passed to your app, you need to define two separate parameters. On Wednesday, June 13, 2012 at 10:55 AM, Randy M wrote: > Hello everyone. > > I'm using rack (1.4.1), but it seems cannot receive > checkbox selection value.. > > http://localhost/hello.cgi?foo=1&foo=3 > Hello, Rack > {"foo"=>"3"} > > Code below. > > #!ruby > require "rack" > class HelloRack > def call(env) > req = Rack::Request.new(env) > return [200, {"Content-Type" => "text/plain"}, > "Hello, Rack\n" + req.params.inspect ] > end > end > Rack::Handler::CGI.run HelloRack.new > > Could anyone tell me idea? > > > ---------- > Randy Michaels > randy_michaels@aol.com (mailto:randy_michaels@aol.com) > >