>From the API:

selectTag       (       $        fieldName,
                $       optionElements,
                $       selected = null,
                $       selectAttr = array(),
                $       optionAttr = null,
                $       showEmpty = true,
                $       return = false
        )


so,

 <?php
$optionElements = array('' => 'Choose Value', '1' => 'Automobile');

// selected can be an array of values
$selected = $whatever_your_value(s)_is;

// Change the size to whatever number of options you want displayed in
the dropdown
echo $html->selectTag('News/sector', $optionElements, $selected,
array('class' => 'category_sector', 'multiple' => 'true', 'size' =>
'5'),  null, true);


Winston


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to