hello,
I am trying to generate a select dropdown from an array, $types. Very
easy to do but i need the <option value=" "> part to read something
other than the key value of the array $types. i.e. 0,1,2,3.
$types
----------
Array
(
[0] => test data
[1] => test data
)
echo $form->select('option_field_label', $types, null, null);
will yield this output:
<option value="0">test data</option>
<option value="1">test data b</option>
I want:
<option value="test data">test data</option>
<option value="test data b">test data b</option>
in php normally you can do this in a foreach loop but I was hoping
there was a way this could be done in cakephp! thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---