Best is to make a form, with your check boxes in .. When the form is
submitted to get the data to the usual way ($this->data).
You might have to trick the name of the field ie : $form->input('Model/
field]['.$id, array('type' => 'checkbox')), then you will receive an
array $this->data['Model']['field']. You can loop on delete the id's.
Hope this helpsOn Nov 7, 5:34 pm, dandreta <[EMAIL PROTECTED]> wrote: > Hello! > I have in my view a list of products, each one with a checkbox to the > side and a link (Remove Selected Products) at the end of the page. The > question is that I want that on click the link all the marked products > will be removed. How I would do my function in the controller in order > that it receives the ids of the marked products and remove them into > the database? > Do you know any article or link relating to this? > I am inexpert in cakephp and my verion of cake is 1.2. > Thanks and regards. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
