Re: QuickForm - how to set defaults in group?
| From: | Alexey Borzov | Date: | Fri, 30 May 2003 14:09:06 +0000 |
| Subject: | Re: QuickForm - how to set defaults in group? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5717@lists.php.net to get a copy of this message | ||
Charles Kline wrote:
I have a group of selects like this: $article_select[] = &HTML_QuickForm::createElement('select','sel1', '',$article_options); $article_select[] = &HTML_QuickForm::createElement('select','sel2', '',$article_options); ...
$ib_form->addGroup($article_select, 'ib_article', 'Source articles:', array('<br />')); How would I set a default value for some of all of these?$ib_form->setDefaults(array(
'ib_article' => array(
'sel1' => 'foo',
'sel5' => 'bar',
)
));
or something like this