From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.81.66 with SMTP id w2csp19727qck; Fri, 15 Jun 2012 10:19:45 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCLaQwMvrBxCw3e3-BBoE3R-cAA@googlegroups.com designates 10.216.142.78 as permitted sender) client-ip=10.216.142.78; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCLaQwMvrBxCw3e3-BBoE3R-cAA@googlegroups.com designates 10.216.142.78 as permitted sender) smtp.mail=rack-devel+bncCLaQwMvrBxCw3e3-BBoE3R-cAA@googlegroups.com; dkim=pass header.i=rack-devel+bncCLaQwMvrBxCw3e3-BBoE3R-cAA@googlegroups.com Received: from mr.google.com ([10.216.142.78]) by 10.216.142.78 with SMTP id h56mr1160657wej.9.1339780784991 (num_hops = 1); Fri, 15 Jun 2012 10:19:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:subject:from:in-reply-to:date :message-id:references:to:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=Q2A1UIA6WGOICMWgjxuGyCLB3HkMTMC7ZObCf2CNu28=; b=JTa72WGyjxvABLIfQlrlv9foCGDSfcZ+kwWuLUtlhE72QYuiekGu6fBF/FpTJ4NVTB YgVvXvDcV9k7sMXphY3LS+prreLnNAw00HCXVx9MXMzQQWcoB0zjvIdczfvl1/raz5zL sqIkccy6BkdHYZRP2bdKGuFHE55/sdv9LXnw0= Received: by 10.216.142.78 with SMTP id h56mr204923wej.9.1339780784713; Fri, 15 Jun 2012 10:19:44 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.216.207.208 with SMTP id n58ls2344166weo.4.gmail; Fri, 15 Jun 2012 10:19:42 -0700 (PDT) Received: by 10.180.80.138 with SMTP id r10mr476266wix.0.1339780782868; Fri, 15 Jun 2012 10:19:42 -0700 (PDT) Received: by 10.180.80.138 with SMTP id r10mr476265wix.0.1339780782826; Fri, 15 Jun 2012 10:19:42 -0700 (PDT) Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) by gmr-mx.google.com with ESMTPS id e10si824633wiz.3.2012.06.15.10.19.42 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jun 2012 10:19:42 -0700 (PDT) Received-SPF: pass (google.com: domain of slivuz@gmail.com designates 74.125.82.172 as permitted sender) client-ip=74.125.82.172; Received: by werb13 with SMTP id b13so3003141wer.17 for ; Fri, 15 Jun 2012 10:19:42 -0700 (PDT) Received: by 10.216.140.33 with SMTP id d33mr3749403wej.113.1339780782672; Fri, 15 Jun 2012 10:19:42 -0700 (PDT) Received: from 95-65-35-76.starnet.md ([95.65.35.76]) by mx.google.com with ESMTPS id i10sm7206764wiy.10.2012.06.15.10.19.41 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jun 2012 10:19:42 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Checkbox selection trouble in request.params From: Silviu Rusu In-Reply-To: Date: Fri, 15 Jun 2012 20:11:47 +0300 Message-Id: References: <7bc991c7-3719-44ca-91d0-e9caeaf8d547@z4g2000pbz.googlegroups.com> <756F637E9A3B4B889225D9A1E3C9111C@gmail.com> To: rack-devel@googlegroups.com X-Mailer: Apple Mail (2.1278) X-Original-Sender: slivuz@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of slivuz@gmail.com designates 74.125.82.172 as permitted sender) smtp.mail=slivuz@gmail.com; dkim=pass header.i=@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable correct way to use this: Item 1 Item 2 note [] after foo On Jun 15, 2012, at 8:15 PM, Randy M wrote: > Well, but these HTML checkbox generates that query_string.. >=20 > Item 1 > Item 2 >=20 > at Rack, we cannot use these type form field? >=20 >=20 > On 6=E6=9C=8816=E6=97=A5, =E5=8D=88=E5=89=8D12:58, Joshua Ballanco = wrote: >> You've only passed one parameter. The first "foo=3D1" sets the foo = parameter to 1. The second "foo=3D3" re-assigns foo to 3. If you want = two parameters to be passed to your app, you need to define two separate = parameters. >>=20 >> On Wednesday, June 13, 2012 at 10:55 AM, Randy M wrote: >>> Hello everyone. >>=20 >>> I'm using rack (1.4.1), but it seems cannot receive >>> checkbox selection value.. >>=20 >>> http://localhost/hello.cgi?foo=3D1&foo=3D3 >>> Hello, Rack >>> {"foo"=3D>"3"} >>=20 >>> Code below. >>=20 >>> #!ruby >>> require "rack" >>> class HelloRack >>> def call(env) >>> req =3D Rack::Request.new(env) >>> return [200, {"Content-Type" =3D> "text/plain"}, >>> "Hello, Rack\n" + req.params.inspect ] >>> end >>> end >>> Rack::Handler::CGI.run HelloRack.new >>=20 >>> Could anyone tell me idea?