The form and html helpers d all this for you and neatly pass the data to your controller in a format ready that Model->save() expects.
At the bottom of the first section on the following page it gives an overview of creating a multiple select for a HABTM associated table. This includes creating an array with the option values in the controller and sending it to the view with $this->set() then using the form helper to automagically create your multiple select field. http://book.cakephp.org/view/189/Automagic-Form-Elements To make this into checkboxes change echo $form->input('group_id'); to echo $form->input('group_id', array('multiple'=>'checkbox')); HTH Paul. 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 [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
