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 the Security component ; 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