Quick_form Select Defaults
| From: | Kilbride, James | Date: | Wed, 26 Oct 2005 12:31:02 +0000 |
| Subject: | Quick_form Select Defaults | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21641@lists.php.net to get a copy of this message | ||
I'm trying to set a default for the quick form select type and I have
the following code:
$activityForm->addElement('select','Area','Activity Area:',$areas);
//$areas is my array of values and names
$defaults['Area']=$default_val;
// additional fields created and defaults saved into $defaults
$activityForm->setDefaults($defaults);
It sets the values of everything except my select statement. I've
checked to make sure the $defaults['Area'] is still set and it is.
Anybody know what I"m missing here? ican't find anything in the
quick_form documentation that suggests select is any different from
anything else.
James Kilbride