Re: QuickForm - how can I make checkboxes where the vlaue equals something like - NAME=PET_ARRAY[] value=dog> Dog
| From: | Justin Patrin | Date: | Tue, 21 Dec 2004 17:51:25 +0000 |
| Subject: | Re: QuickForm - how can I make checkboxes where the vlaue equals something like - NAME=PET_ARRAY[] value=dog> Dog | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16373@lists.php.net to get a copy of this message | ||
On Tue, 21 Dec 2004 05:37:58 -0800 (PST), l Burnerheimerton
<lburnerheimerton@yahoo.com> wrote:
> I'd like to create checkboxes that render like this:
>
> <INPUT TYPE=checkbox NAME=PET_ARRAY[] value=dog> Dog<br>
> <INPUT TYPE=checkbox NAME=PET_ARRAY[] value=cat> Cat<br>
> <INPUT TYPE=checkbox NAME=PET_ARRAY[] value=fish> Fish<br>
What are you trying? Why is the output you're seeing not what you
want? You need to giv us something to start with here.
I would suggest making the names PET_ARRAY[dog], etc. That way there's
a unique name for each one but you still get them in one array which
you can easily foreach() over.
>
> The best I can come up with so far after MUCH working with it, is where the value = 1. I could
> no tget advcheckbox to work like this either.
>
> Any ideas? Thanks!
>
--
Justin Patrin