Yes..i see the false setting you pointed out for the blank field.

Thanks

Dave

-----Original Message-----
From: Samuel DeVore [mailto:[email protected]] 
Sent: March-13-09 11:00 PM
To: [email protected]
Subject: Re: Select input


On Fri, Mar 13, 2009 at 6:23 PM, Dave Maharaj :: WidePixels.com
<[email protected]> wrote:
>
>
>
> echo $form->select('level', 
> array('0'=>'Low','1'=>'Medium','2'=>'High'),
> array('selected'=>'Low'));
>
> Renders this
>
> <option value=""/>
> <option selected="selected" value="0">Low</option> <option 
> value="1">Medium</option> <option value="2">High</option>
>

Is it safe to say that you sent this before reading my response?


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/



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

Reply via email to