rtanz wrote:
> tried that and got this error
> 
> Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/jpgalea/
> public_html/survey/app/views/surveys/edit.ctp on line 9

Sorry for that, I should have done a cut & paste from my own code. Made 
a typo by forgetting to enclose all things related to select field 
inside an array. Hey, this is Friday, I'm a bit tired ! :D

Here is the right syntax :

echo 
$form->input("my_field_name",array("type"=>"select","options"=>array("0"=>"NO","1"=>"YES"),"selected"=>"1"));

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