This doesn't add a new value to the list, just selects one that's already there. I want the list to start of with a custom row that is not in the database (such as "Please select a value") that will be selected by default (unless there is already a selection) and the rest of the list is drawn from the table.
On Aug 11, 9:21 am, arif hossen <arifhossen2...@gmail.com> wrote: > You can use below code cakephp format. > > <?php > > echo $html->input('listname',array('options'=>$mylist,'Selected'=>'Please > select a value)); > > ?> > > On 8/11/09, jburns <jeremybu...@me.com> wrote: > > > > > How can I add a blank value (something like "Please select a value") > > to the top of a select list when using $this->Xxxx->Yyyy->find > > ('list'); instead of defaulting to the first value in the list? > > -- > > Regards, > Mohammad Arif Hossen > Web Developer > United Group International(UGIBD)www.ugibd.net > Mobile no: +88 01714355911 > Mobile no: +88 01922110308 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---