Re: Quickforms: Checkbox not checked using setChecked (?)
| From: | Alexey Borzov | Date: | Fri, 07 Mar 2003 13:17:31 +0000 |
| Subject: | Re: Quickforms: Checkbox not checked using setChecked (?) | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4084@lists.php.net to get a copy of this message | ||
7 Март 2003 16:17, Jeroen Houben написал:
> Hi,
>
> In addition to my previous message the following code also doesn't
> behave like you would expect:
>
> ...
> $checkbox = $form->addElement('checkbox','is_allowed','Some
> check', null);
This should be
$checkbox = &$form->addElement('checkbox','is_allowed','Some
check', null);