Hello all,
I'm using an array of objects to populate a drop-down menu. By default, it's
setting the option values to 0, 1, 2, 3, etc.
However, I would like to use the object id as the value for the option,
rather than the number sequence. How can this be done?
My select tag looks like this:
<?php echo select_tag('fragrance',$fragrances) ?>
($fragrances is the result of a doSelect. The fragrance names appear by
default in the drop down, using __toString())
Any help will be greatly appreciated :D
Haider
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---