Have you tried this: echo $form->select('active', array('1' => 'Yes', '2' => 'No'), '1', array(), false);
This should work for 1.2 On Apr 25, 11:28 am, rtanz <[EMAIL PROTECTED]> wrote: > hi i would like to make a select box with a label and dropdown, > default value 'Yes' and no empty value. I am trying this code but its > not working as i want to, can you help me out? > > echo $form- > > >select('active',array('0'=>'Yes','1'=>'No','Yes',null,false)); > > shown here: > > http://jpgalea.com/survey/surveys/add > > thanks --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---