Welcome Guest, Not a member yet? Register   Sign In
Help with multiple select boxes
#5

[eluser]dobbler[/eluser]
Hi CarNinja,

This didn't make any sense to me either. The form fields should look like this:

<INPUT type="CHECKBOX" name="itemtype[]" value="1" /><br />
<INPUT type="CHECKBOX" name="itemtype[]" value="2" /><br />
<INPUT type="CHECKBOX" name="itemtype[]" value="3" /><br />

Then try print_r($_POST); and you should get an array of the values.. They have to be checked though.

The name of the input being an array threw me, I came from an ASP background so this was confusing but it worked so I'm not asking any questions!

Hope this helps, it was driving me mental so I feel your pain..

Rob.


Messages In This Thread
Help with multiple select boxes - by El Forum - 08-24-2008, 05:03 PM
Help with multiple select boxes - by El Forum - 08-24-2008, 08:01 PM
Help with multiple select boxes - by El Forum - 08-24-2008, 08:07 PM
Help with multiple select boxes - by El Forum - 09-04-2008, 12:46 AM
Help with multiple select boxes - by El Forum - 09-04-2008, 01:57 AM
Help with multiple select boxes - by El Forum - 09-04-2008, 02:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB