Hello,
I'm making an edit form and I can't get the existing value to be selected
into one of the select field.
The classic input in the view: echo $form->input('group');
I've changed that to a select:
$options=array('Generatia 1'=>'Generatia 1','Generatia 2'=>'Generatia 2',
'Generatia 3'=>'Generatia 3');
echo $form->select('group',$options);
The existing value is in $this->data['Profile']['group'] and, in my example,
is equal to "Generatia 2"
How can I make that one selected?
echo $form->select('group',$options, $this->data['Profile']['group']), as
shown in the book, doesn't work. What am I missing?
Thanks
Toate cele bune,
Andrei Mita
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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