Re: Handling data returned by multi-select box
I'm making a bit of headway here, but still can't figure out how to do
this.
Anyone have any ideas?
On Feb 9, 12:46 pm, autnoc <aut...@gmail.com> wrote:
> Hi! New to this group and to Cake.
>
> I have a form view for adding a record that has a multi-select (echo
> $this->Form->input('relatedShowList', array ('options' =>
> $dropdownOpts, 'type' => 'select', 'size' => '5', 'multiple' =>
> true));)
>
> Problem being after the form is submitted it's passed back to the
> controller with 'Array' (unquoted) for the value of the field. I
> understand why Array appears and why the form is sending it in a way
> PHP interprets correctly as an array, but how I can pre-process that
> array to give me a list of CSV values that I can then slide into the
> proper place in the Insert query?
>
> I assume this would go in the $this->request->is('post') branch of the
> add function for the controller, but not sure how to get the query
> rewritten properly.
>
> Any help would be much appreciated.
>
> Thanks!
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home