Re: set the selected value in dropdown

2009-07-21 Thread Pradheep Ayyanar
thanks On Tue, Jul 21, 2009 at 12:52 PM, Dr. Loboto wrote: > > Just set $this->data in controller to record data you will modify and > Cake will set 'selected' and other values itself. > > On Jul 21, 1:50 pm, Pradheep Ayyanar wrote: > > HI > > > > i have a form with dropdown for selecting the i

Re: set the selected value in dropdown

2009-07-21 Thread Dr. Loboto
Just set $this->data in controller to record data you will modify and Cake will set 'selected' and other values itself. On Jul 21, 1:50 pm, Pradheep Ayyanar wrote: > HI > > i have a form with dropdown for selecting the industry which i have > populated. > but in the modify form, i need to set th

set the selected value in dropdown

2009-07-20 Thread Pradheep Ayyanar
HI i have a form with dropdown for selecting the industry which i have populated. but in the modify form, i need to set the selected value which is come from the database. this is the code that i have written in the view select('industry',array($industry),*$industry*,array(),'Select Industry'); ?