Yes you can create a any element (textbox, checkbox ...) with the same name, for this you have to create an array of that elelment. cakephp gives a better way to do this,
e.g. $form->checkbox('Model.0.fieldname, array()); $form->checkbox('Model.1.fieldname, array()); $form->checkbox('Model.2.fieldname, array()); & so on ....
You can create any number of elements. As output it will give you the array of the 'fieldname'
Please check this out, i am using this type of checkboxes in my project.
Vijay Kumbhar
2010-05-07 07:54:47