Hello Boyan,
I am having same problem. What approach did you follow?
Thanks
On Sunday, February 26, 2012 4:29:45 AM UTC-8, Boyan Penev wrote:
>
> Hello,
>
> I would like to accomplish the following: out of 2 checkboxes, if only the
> first one is clicked, the value would be 10, if only the second one- 01, if
> both - 11. I tried giving the checkboxes the same name(array) attribute and
> different values, like:
> $this->Form->input('example', array('type' => 'checkbox', 'name' =>
> 'checked[]', 'value' => 1)
> and i get an indexed array over which i need to iterate in the controller.
> Does anyone have an idea, how could i map the values directly in the view,
> in order for the controller to receive the final result?
>
> Thanks,
>
> Boyan
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.