Consider the following form in a HTML file:

...
<input type=checkbox name="box" value=1>
<input type=checkbox name="box" value=2>
<input type=checkbox name="box" value=3>
<input type=checkbox name="box" value=4>
...

Now I'm posting this form into a PHP script.  The problem is I can't change
that HTML file.  Which means I can't modify the code above into PHP prefered
style:

<input type=checkbox name="box[]" value=1>
<input type=checkbox name="box[]" value=2>
...

So, how can I get the correct values of the checkbox?  $_REQUEST['box'] is
not an array and only contains the last value.  Thanks!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to