Re: QuickForm - addGroup - html element problem
| From: | Alexey Borzov | Date: | Wed, 25 Feb 2004 09:23:14 +0000 |
| Subject: | Re: QuickForm - addGroup - html element problem | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10919@lists.php.net to get a copy of this message | ||
Hi!
Daniel Demacek wrote:
Hello, please help I can't add 'html' element to a group:I presume you rather can't *display* it. Consider using 'static' element instead, usage of 'html' is discouraged.
$pd_age = Array(); $pd_age[] = &HTML_QuickForm::createElement('checkbox', 'agedontcare', null, 'Don\'t Care <b>OR</b>', '1'); $pd_age[] = &HTML_QuickForm::createElement('select', 'agefrom', null, $age_from_list); $pd_age[] = &HTML_QuickForm::createElement('html', 'SOME HTML'); $pd_age[] = &HTML_QuickForm::createElement('select', 'ageto', null, $age_to_list); $form->addGroup($pd_age, 'pd_age', 'Age:', ' ');