For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2005 > Re: [PEAR-DEV] QuickForm bug?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-DEV] QuickForm bug?
Bertrand Mansion

2005-03-01, 8:57 pm

Daniel C. wrote:

>For the curious, here's an explanation of the bug, along with code.=20
>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 chec=
ked.
If you need a different value (something I personally doubt), have a look a=
t the
advcheckbox element:
<http://pear.php.net/manual/en/packa...html-quickform-
advcheckbox.php>

It's always a good idea to read the doc when the doc is available :)

Bertrand Mansion
Mamasam
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com