> i’m trying to just create a “selected” option > basically i just want the “Yes” option to be the default
Hi slimcady, There are two approaches I can think of: 1) Set $showEmpty to false to automatically make the first option be "selected" (removes the empty option). 2) Build an array of the options, then choose the array item to be selected. See my examples: http://bin.cakephp.org/saved/37784. I'm assuming you are using Cake version 1.1.x.x, otherwise the "selectTag" is deprecated in 1.2. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
