RE: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Lon Lentz
9, 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. and There will be now way to tell if the user checked both. You could do this: This will allow you to group everything in a hash so you could g

RE: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Lon Lentz
That did the trick. Thanks! -Original Message- From: Short, Chad [mailto:[EMAIL PROTECTED]] 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

RE: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Short, Chad
Use the [] along with the type of input you are using. Example: This will send php an array of $thing with whatever is selected. Hope this helps. Chad. -Original Message- From: Lon Lentz [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 4:07 PM To: Php-General@Lists. Php.

Re: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Kevin Stone
This creates the indexed array $_POST['colors']. The array will only have as many values as were checked. In otherwords if Red and Blue are checked the values will be reutnred at $_POST['colors'][0] and $_POST['colors'][1].. not at index [0] and [2] as you might expect. Hope this helps, K