Wednesday, January 27, 2010

Re: I need help with checkbox

> $form->input('Curse.0.curse_id',array('type' => 'checkbox', 'value' =>  
> 13));
>
> how do I recoup the fields checked for edition?

The data will be in $this->data['Curse'] in the controller.

>   $this->data = $this->User->read(null, $id);

By doing this you are completely blowing away the form submitted
data. ;) Not a good idea.
Instead, assign the user to another variable so you don't overwrite
the form data passed in.

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: