RE: [PHP] How to handle multiple value checkboxes
| From: | Short, Chad | Date: | Thu, 29 Aug 2002 21:37:49 +0000 |
| Subject: | RE: [PHP] How to handle multiple value checkboxes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114556@lists.php.net to get a copy of this message | ||
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.
__________________________
Lon Lentz
Applications Developer
EXImpact.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php