Take a look at the CakePHP book at these locations: http://book.cakephp.org/view/1390/Automagic-Form-Elements which explains about the form elements and the automagic functionality of it!
http://book.cakephp.org/view/1390/Automagic-Form-Elements#options-options-1394 which explains how your data is applied to the form element, so as to create a select element. http://book.cakephp.org/view/1390/Automagic-Form-Elements#options-multiple-1395 which will make the select into a set of checkboxes. By following the above, you should be able to get it up and running! Should you have issues on the way, don't hesitate to write in this thread again :) Enjoy, John On Jun 17, 2:09 pm, mirfan <m.irfa...@gmail.com> wrote: > Hi guys, > > I have three tables > > categories campaigns > campaign_categories > ---------------------- > -------------------------- > --------------------------------- > id > id id > name name > category_id > status > detail campaign_id > > the table campaign_categories is a bridge between categories and > campaigns > > Now if i have 20 categories in "categories" table > > and making user able to select how many he wants with checkboxes. > > and when click save all of them are saved. > > simply i want to generate a form with checkboxes and user select > categories and then all of them are saved. > > how will i do that please help me. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en