Hello ,
I want to save multi-select options to my d.b :-
This is the syntax for my view
<?php echo
$form->input('Meetingtopic.topic_id',array('type'=>'select','options'=>array($topic),'multiple'=>true));?>
when i submit the form i get it as
[Meetingtopic] => Array
(
[topic_id] => Array
(
[0] => 2
[1] => 4
)
)
but I wan't it in following format
[Meetingtopic] => Array
(
[0] => Array
(
[topic_id] => 2
)
[1] => Array
(
[topic_id] => 4
)
)
so how do I write it in view?
Thanks and regards,
Amit
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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