$groups = $_POST['groups']; or
if(isset($_POST['groups']) && is_array($_POST['groups'])) $groups = $_POST['groups']; else $groups = array(); so that groups is an (empty) array even if no checkboxes were checked mh. On Wed, 12 Jun 2002, Adam Plocher wrote: > <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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php