[Solar-talk] Multiple select forms problem
Cruz, Darwin
Darwin.Cruz at gd-ais.com
Tue Mar 4 13:54:27 CST 2008
I'm trying to create a multiple select form in my php application but
i'm running into the paroblem that the form selections are not being
saved when the user selects the options. Am i doing something wrong in
my decleration? Is anyone else having this problem?
When the $myForm->getValues() method is called, does the returned
value of the multiple select form an array?
Thanks?
$myForm = Solar::factory('Solar_Form');
$myForm->setElement('selectOptions', array(
'type' => 'select',
'label' => 'Shipping Reason:',
'options' =>
array('One'=>'One','Two'=>'Two','Three'=>'Three'),
'require' => true,
'attribs' => array(
'multiple' =>true
),
));
More information about the Solar-talk
mailing list