Thank you AD and keymaster, this helps me out!

@AD: Can you tell me, why I should not use checkboxes instead of
multiple selects? Ok, ok, maybe the mentioned case (movies) is not the
best, but I think there are other cases, where this could make sense:
online questionnaire to name an example.

Thanks, Christoph

On 12 Jul., 08:48, AD7six <[EMAIL PROTECTED]> wrote:
> On Jul 11, 8:02 pm, Preloader <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello AD,
>
> > yes, that's indeed described very well in the manual (Model-section),
> > BUT:
>
> > what if I wanted a group checkboxes instead of the multiselect?
>
> > The resulting array should/could be something like
>
> > array(
> >      [Movie] => array(
> >          [Movie] => array(
> >             [0] => 2,
> >             [1] => 4,
> >             [2] => 5,
> >         )
> >     )
> > )
>
> > Checkbox creation is clear: loop through the movies (values come from
> > generateList) and fill the options-array of the FormHelper::input
> > method.
>
> > But what should I pass to the $fieldName param $form->input in order
> > to get
>
> > ... name="data[Movie][Movie][<idx_of_array>]" ...
>
> > in HTML.
>
> Hi Christoph,
>
> I'm not sure you should/need to. There is an article on the bakery
> about multiple checkboxes, although it's 1.1 maybe it still has some
> useful info.
>
> hth,
>
> AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to