Re: QuickForm bug?
| From: | Bertrand Mansion | Date: | Tue, 01 Mar 2005 22:15:08 +0000 |
| Subject: | Re: QuickForm bug? | ||
| References: | 1 | Groups: | php.pear.dev php.pear.general |
| Request: | Send a blank email to pear-dev+get-36445@lists.php.net to get a copy of this message | ||
Daniel C. wrote:
>For the curious, here's an explanation of the bug, along with code.
>In short, when I call setValue on a checkbox object, the value element
>in the object's _attributes array doesn't get changed from 1 to the
>value passed to setValue.
This is the expected behavior. A checkbox value in QF is always 1 when checked.
If you need a different value (something I personally doubt), have a look at the
advcheckbox element:
<http://pear.php.net/manual/en/package.html.html-quickform.html-quickform-
advcheckbox.php>
It's always a good idea to read the doc when the doc is available :)
Bertrand Mansion
Mamasam