Hello everybody,
I am using cake 1.2 and look for the proper cake syntax to give me this html
result in my view:
<select name="[foo][faa]" size="3" multiple="multiple">
<option>Heino</option>
<option>Michael Jackson</option>
<option>Tom Waits</option>
<option>Nina Hagen</option>
<option>Marianne Rosenberg</option>
</select>
I tried quite a lot of variations already, but nothing gives me a multiple
select box.
Last try was ($farray being my options array):
echo $form->input('foo.faa',
array('type'=>'select',
'options'=> $farray,
'attributes'=> array('size'=>3, 'multiple'=> 'true'),
'showEmpty'=>true));
Anyone a better or even correct suggestion?
Thank you!
Anja
--
View this message in context:
http://www.nabble.com/%24form-%3Eselect-for-multiple-selections-tp19275223p19275223.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---