POST Arrays with register globals..
| From: | Adam Plocher | Date: | Wed, 12 Jun 2002 20:15:03 +0000 |
| Subject: | POST Arrays with register globals.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101803@lists.php.net to get a copy of this message | ||
<input type="checkbox" name="groups[]" value="1"
checked> blah1<br>
<input type="checkbox" name="groups[]" value="2"
checked>&nbps; blah2<br>
<input type="checkbox" name="groups[]" value="3"
checked> blah3<br>
I can't seem to access that data correctly when that form gets submitted.
I have tried:
$groups[] = $_POST['groups[]'];
and
$groups[] = $_POST['groups'];
no luck..
Can somebody please give me a hand, thanks a lot.
-Adam