<?php echo $html->selectTag('User/user_level', $options =
array('user'=>'user','admin'=>'admin'),'user', array(), array(),
'Select'); ?>

or

        <?php echo $html->selectTag('User/user_level', $options =
array('user'=>'user','admin'=>'admin'),'user', array(), array(),
false); ?>

On Aug 28, 5:00 pm, majna <[EMAIL PROTECTED]> wrote:
> http://api.cakephp.org/class_html_helper.html#dc661e84e1710023d94691f...
>
> On Aug 28, 4:54 pm, rtanz <[EMAIL PROTECTED]> wrote:
>
> > hi i have a select tag formatted as follows:
>
> >         <?php echo $html->selectTag('User/user_level', $options =
> > array('user'=>'user','admin'=>'admin'),'user', array(), array(),
> > true); ?>
>
> > now it displays 3 options in reality:
>
> > 1 _____
> > 2 user
> > 3 admin
>
> > I would like to eliminate the empty option, how can i do this? thanks


--~--~---------~--~----~------------~-------~--~----~
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