RE: [PHP] How to handle multiple value checkboxes

From: Date: Thu, 29 Aug 2002 22:02:03 +0000
Subject: RE: [PHP] How to handle multiple value checkboxes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114557@lists.php.net to get a copy of this message
That did the trick. Thanks! -----Original Message----- From: Short, Chad [mailto:Chad.Short@gateway.com] Sent: Thursday, August 29, 2002 5:38 PM To: Php-General@Lists. Php. Net Subject: RE: [PHP] How to handle multiple value checkboxes Use the [] along with the type of input you are using. Example: <Select NAME=THING[] MULTIPLE> This will send php an array of $thing with whatever is selected. Hope this helps. Chad. -----Original Message----- From: Lon Lentz [mailto:lonl@eximpact.com] Sent: Thursday, August 29, 2002 4:07 PM To: Php-General@Lists. Php. Net Subject: [PHP] How to handle multiple value checkboxes If I have a form with multiple checkboxes with different values but the same name, and someone selects a couple of them, how do I reference all of the values? Right now I am only getting the last one selected.

« previous php.general (#114557) next »