echo $form->input('p_fids',
                array('type' => 'select',
                         'multiple'=> 'checkbox',
                        'options' => 'youroptions',
                        ),
                );

Works for me, however I also get blackholed by Security component (I
also have a js code that hide / show the field)..

hth
On Feb 28, 8:38 am, foxmask <[EMAIL PROTECTED]> wrote:
> i've made another try like this
>
> echo $form->select('p_fids',
>                 array(
>                         'type'=>'checkbox',
>                          'multiple'=>true,
>                         ),
>                 null,
>                 array(
>                        'value''=>$forum['Forums']['forum_name'],
>                 }
>                 );
>
> without any success
>
> can someone show me the light in this black tunnel where i'm lost ? ;)
>
> On Feb 26, 7:48 am, foxmask <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > can someone help me with the FormHelper and an array of checkboxes ?
> > Regards.
>
> > On 25 fév, 22:51, foxmask <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
> > > i would like to use the form help to migrate this :
>
> > > <li><label><input type="checkbox" name="p_fids[]" value="<?php echo
> > > $forum['Forums']['id']?>" class="checkbox" <?php echo $options ?> /><?
> > > php echo $forum['Forums']['forum_name']; ?></label></li>
>
> > > where
> > > $options is the result of
>
> > > if ( in_array($forum['Forums']['id'],$p_fids ) )
> > >     $options = '"checked"="checked"';
>
> > > i have tried this
> > > echo $form->input('p_fids[]',
> > >         array(
> > >                         'div'=>false,
> > >                         'label'=>$forum['Forums']['forum_name'],
> > >                         'type'=>'checkbox',
> > >                         'before' => '<li>',
> > >                         'after' => '</li>',
> > >                         'value' => $forum['Forums']['id']
> > >                         )
> > >                 );
>
> > > but when i submit the form ; with theSecuritycomponent ; i'm falling
> > > in the blackhole :(
>
> > > Thank you for your help
>
> > > Kind Regards.
--~--~---------~--~----~------------~-------~--~----~
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