Re: Quickforms: Checkbox not checked using setChecked (?)
| From: | Jeroen Houben | Date: | Fri, 07 Mar 2003 13:35:35 +0000 |
| Subject: | Re: Quickforms: Checkbox not checked using setChecked (?) | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4085@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
7 Март 2003 16:17, Jeroen Houben написал:JeroenHi, 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); Thanks, that works! shouldn't the method "addElement" automatically return a reference though?