Re: Quickform2 checkboxes
| From: | Alain Williams | Date: | Thu, 19 Nov 2009 18:24:27 +0000 |
| Subject: | Re: Quickform2 checkboxes | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-53051@lists.php.net to get a copy of this message | ||
On Thu, Nov 19, 2009 at 04:10:37PM +0300, Alexey Borzov wrote:
> Hi Alain,
>
> Alain Williams wrote:
> >If you do this you only see the value of the last one set in the form.
> >OK: set as an array name, eg:
> >
> > $form->addElement('checkbox', 'vegetable[]',
> >array('value' => 1),
> > array('label' => 'carrot'));
> > ....
> Anyway, for a special case of checkboxes it may easily be allowed, since we
> can just get an array from submit DataSources and check whether its value
> is in that array. Can you please open a feature request for that?
I have done that:
https://pear.php.net/bugs/bug.php?id=16806
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>