Yes it does. It's unfortunate that PHP treats it this way. It makes using dynamic checkbox inputs a lot more difficult than it should be. ColdFusion and, I believe, ASP make a comma delimited list. But I did find a little snippet which allows me to cheat the need for a key in the input tag. If just add [] to the name, I can use this to create my delimited list.
foreach($whynot as $key => $value) {$whynotlist .= $value.",";} -----Original Message----- From: listman@evol [mailto:listman@evol]On Behalf Of Keith Vance Sent: Thursday, August 29, 2002 6:01 PM To: Lon Lentz Cc: Php-General@Lists. Php. Net Subject: Re: [PHP] How to handle multiple value checkboxes You have to name them different. <input type="checkbox" name="frisbee" value="toss"> and <input type="checkbox" name="frisbee" value="dropped"> There will be now way to tell if the user checked both. You could do this: <input type="checkbox" name="frisbee[toss]" value="Y"> <input type="checkbox" name="frisbee[dropped]" value="Y"> This will allow you to group everything in a hash so you could get the values like this: $_POST['frisbee']['toss'] or $_POST['frisbee']['dropped'] That makes sense, right? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php