ah, var $displayField in my model will do just fine...sorry for the
premature question...

On Oct 7, 6:01 pm, p_W <[email protected]> wrote:
> Is there an option in the form helper that would let me end up with a
> select that is filled from a table, only with the 'id' column being in
> the 'value' part of the select, and the other column of the db filling
> the visible part of the select?  something like this:
>
> <select>
>   <option value="1">Label for 1</option>
>   <option value="2">Label for 2</option>
>   ...
> </select>
>
> or if this is more clear, something like this:
>
> <select>
>   <option value="AR">Arkansas</option>
>   ...
>   <option value="CA">California</option>
>   ...
> </select>
>
> ...where there is a db table with 'state_abbr' and 'state_name'
> columns.
--~--~---------~--~----~------------~-------~--~----~
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