Re: QuickForm addGroup syntax help needed
| From: | Jon Wood | Date: | Sat, 12 Apr 2003 20:44:21 +0000 |
| Subject: | Re: QuickForm addGroup syntax help needed | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4820@lists.php.net to get a copy of this message | ||
It looks to me like your trying to create a drop down box there - are
you aiming for radio boxes, or a drop down?
I've got no idea how to do radio boxes, but drop downs are done like
this:
$select = &HTML_QuickForm::createElement('select', 'name');
$select->addOption('value', 'text');
...
$form->addElement($select);
Jon
On Sat, 2003-04-12 at 21:40, Charles Kline wrote:
> Hello,
>
> Can anyone tell me how to properly format this group of elements? I
> think I am close, but the select does not get populated., just displays
> select with no options.
>
> $mesh_select[] = &HTML_QuickForm::createElement('select',
> $mesh_options);
> $mesh_select[] = &HTML_QuickForm::createElement('select',
> $mesh_options);
> $mesh_select[] = &HTML_QuickForm::createElement('select',
> $mesh_options);
> $mesh_select[] = &HTML_QuickForm::createElement('select',
> $mesh_options);
> $form->addGroup($mesh_select, 'mesh', 'MeSH Terms:', array('<br
> />'));
>
>
> Thank you,
> Charles
>