AFAIK, you can't. You might get it to work this way, though: 1. Put a hidden field in your form. 2. Setup some javascript to populate the hidden field with either 'flag' or 'delete' depending on which button you click, then submit. 3. Setup your controller to perform different actions based on the contents of your hidden field.
--OR-- 1. Use javascript to change the action of your form based on which button is clicked. I hope that helps. hydra12 On Oct 25, 7:51 am, Rahul <[EMAIL PROTECTED]> wrote: > Hi > I am working on a Animal Inventory System. > In a particular area of my application, I have a form with two submit > buttons say one for "Flag" and other for "Delete". > My problem is - "I have to post the form along with its data to the > flag action of say Animal controller when the user clicks the "Flag" > submit button (after checking one or more animals from a DB populated > list). > Similarly I want to post the same form to the Animals/delete action > when the user clicks the "delete" submit button after checking one or > more animals from a DB populated list. > > So how can I post the same form to different controller/actions > according to the click operation of respective submit button, if it > has two or more submit buttons. > > Please, if Can anyone help me out of this problem.. > > Regards > Rahul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---