Just wondering how it works and how to handle the information.
Let's say I have a form like this:
$multi = new Zend_Form_Element_Multiselect('users');
$multi->setMultiOptions(array(
//'option value' => 'option label'
'21' => 'John Doe',
'22' => 'Joe Schmoe',
'23' => 'Foobar Bazbat'
));
$form->addElement($multi);
If a user selects one, or multiple values from a multi-select box...
- How do I get the value that the user selected?
- Does it return in array? or what?
- How can I tell how many items the user selected?