I have a table named languages where language names are stored.  I
want to retrive those language names and give options to users in in a
checkbox[] type.

I tried,
code in views:

                <?php
                foreach($languages as $lang)
                {
                ?>

                 <?php echo $html->checkbox('Language/language', $title = null,
$htmlAttributes = array($lang['Language']['language_id']), $return =
false); echo $lang['Language']['language_name'];?>

                <?php
                }
                ?>
When i post,  i am getting value of only one checkbox


--~--~---------~--~----~------------~-------~--~----~
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