Re: checkboxes problem

From: Date: Wed, 30 May 2007 18:06:13 +0000
Subject: Re: checkboxes problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255834@lists.php.net to get a copy of this message
On Wed, May 30, 2007 3:59 am, blueboy wrote: > Hi, > > I have a checkbox array (about 20 lines) > > input name=\"box\" type=\"checkbox\" value=\"$id\"> > input name=\"box\" type=\"checkbox\" value=\"$id\"> > input name=\"box\" type=\"checkbox\" value=\"$id\"> > > I do some client side checking with javascript however the javascript > array > > name=\"box\" > > does not match the php version, > > name=\"box[]\" > > So either my client side stuff works or the php array only returns 1 > value > when posted. Is there any way to for this to work? Let PHP use the NAME= attribute, and JS use the ID= attribute name="box[1]" id="box1" -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#255834) next »