"Henri marc" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello Torsten,
>
> > try this:
> >
> > input name="Grid1[1]" type"checkbox" file://1st
> > grid, 1st checkbox
> > input name="Grid1[2]" type"checkbox" file://1st
> > grid, 2nd checkbox...
> Seems I can't do another way than this. Not possible
> to do just Grid1[].

With Grid1[] how can you distinguish between the checkboxes?

>
> > After submit you will receive $_POST['Grid1'] as an
> > ARRAY containing all
> > indices of the checked checkboxes. Then loop through
> > it and do what ever you
> > want:
> >
> > foreach ($_POST['Grid1'] as $value) {
> >
> >     echo $value;
> > }
> So, I did it like you said but the result of echo
> $value is "on" not the checkedbox number.

Try print_r($_POST['Grid1']); at the top of your second page (where the form
action points to).

Torsten

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

Reply via email to