Re: QuickForm addGroup syntax help needed
| From: | Bertrand Mansion | Date: | Sat, 12 Apr 2003 21:22:55 +0000 |
| Subject: | Re: QuickForm addGroup syntax help needed | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4823@lists.php.net to get a copy of this message | ||
<ckline@rightcode.net> wrote :
> Hi There,
>
> I am trying to create a group of select menus. I know how to create
> them individually, but I am trying to make them a group element, which
> I can't quite figure out.
>
> Thanks though.
> Charles
>
> On Saturday, April 12, 2003, at 04:40 PM, 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
$mesh_select[] = &HTML_QuickForm::createElement('select', 'sel1',
'',
$mesh_options);
$mesh_select[] = &HTML_QuickForm::createElement('select', 'sel2',
'',
$mesh_options);
$form->addGroup($mesh_select, 'mesh', 'MeSH Terms:', array('<br
/>'));
Parameters, just like in any other functions, have to be passed in the
proper order, you forgot some.
Bertrand Mansion
Mamasam