If you print out the contents of the $this->data array ( debug($this- >data) ). You should see: [vendor_id] => Array ( [0] => 1 [1] => 2 )
So that's where you access those values, they are in the array. On Jul 27, 3:31 pm, NIghtmare327 <pmills...@gmail.com> wrote: > I have a form I am using to do searches, and am having issues with the > return values from the form. here is the code segment from the form: > > ===== index.ctp ===== > > <?php > echo $form->button('Reset Form', array > ('type'=>'reset', 'style'=>'width:200px;height:35px')); > echo $form->input('Search.keywords'); > echo $form->input('Search.name',array('after'=>__ > ('wildcard is *',true))); > //echo $form->input('Search.vendor_id'); > echo $form->input('Search.vendor_id', array('type' => > 'select', 'multiple'=>true)); > echo $form->submit('Search'); > ?> > > It shows me themultiplelist, but when I print the passed values in > the controller, this is what I get: > > Array ( [Search.vendor_id] => Array ) > > It appears I am getting the word Array back rather than the values of > the selected items. > > Any thoughts on this matter? let me know if you need to see more of > the source to see what is happening. Just as some background, Vendors > is a lookup table for vendors based on vendor_id obviously. I want to > be able to do a search based uponmultiplevendors rather than just > 1. I have the search for one working, just not this one. Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---