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 the multiple list, 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 upon multiple vendors 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to