I want to generate a selection with Australian states so i used the following..
$html->selectTag('Customer/state',array('NSW','QLD','ACT','VIC','WA','SA','TAS','NT'). This generates the following <select name="data[Customer][state]" > <option value="" ></option> <option value="0" >NSW</option> <option value="1" >QLD</option> etc.... </select> I dont need values set to "0","1",.... etc. I need the display values to be the same as option values. Do i have to specify array('NSW=>'NSW','QLD'=>'QLD' etc.... everytime? Any shortcuts? Thanks in advance, simon. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---