Try array_keys($userSuburbs) - im sure the selected arg wants an array of keys not values.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andre Sent: Friday, 3 July 2009 12:48 p.m. To: CakePHP Subject: selected not working My Options Array ($suburbs) Array ( [26] => DARWIN [29] => ALAWA [30] => BRINKIN [31] => CASUARINA [32] => COCONUT GROVE [33] => JINGILI [34] => LEE POINT [35] => MILLNER [36] => MOIL [37] => NAKARA [38] => NIGHTCLIFF [39] => RAPID CREEK [40] => TIWI [41] => WAGAMAN [42] => WANGURI [44] => ANULA [45] => KARAMA [46] => LEANYER ) my array of selcted options for this user ($userSuburbs) Array ( [26] => DARWIN [29] => ALAWA [30] => BRINKIN [31] => CASUARINA [32] => COCONUT GROVE [33] => JINGILI [34] => LEE POINT [35] => MILLNER ) My View echo $form->select('Suburb.id',$suburbs,$userSuburbs, array('multiple' => true),false); I get this list and the multiple seclect but NOTHING is selected any idea why? __________ Information from ESET NOD32 Antivirus, version of virus signature database 4211 (20090702) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4211 (20090702) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
