Re: Checkboxes (LONG): Handling multiple rows
| From: | Chris Adams | Date: | Thu, 06 Jul 2000 02:38:51 +0000 |
| Subject: | Re: Checkboxes (LONG): Handling multiple rows | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-23653@lists.php.net to get a copy of this message | ||
"Chris Adams" <chris@digitaria.com> wrote in message
news:097b01bfe6f2$c5e9a100$0a65a8c0@digitaria.com...
> > If I check boxes 1, 3 & 5, I then get a response of
> >
> > 0 on
> > 1 on
> > 2 on
>
> This is because checkbox values will only be sent if they're checked,
This was a bit terse - basically, PHP has no way of knowing that you sent
five checkboxes named check[] and only got 3 back. It only knows about the 3
items named check[] the browser sent back, leading to a three element array.