> I think the best way to do this on the server side is to name the
> submit buttons - only the one pressed gets passed on to the server
> side, so you can check for this to decide how to handle the form
> submission.
Jepp, thats the best solution if you work with the Input-Submit-
Buttons (http:
Ive had to do similar in the past, off the top of my head:
I think the best way to do this on the server side is to name the
submit buttons - only the one pressed gets passed on to the server
side, so you can check for this to decide how to handle the form
submission.
As I said, this was a whiil
you could use $ajax->submit. You can specify the url into the the
parameters thus they can be different.
On Oct 25, 5:47 pm, Chambrln <[EMAIL PROTECTED]> wrote:
> I would suggest trying to capture the event on the controller side and
> process your data accordingly.
>
> Perhaps you should just pu
I would suggest trying to capture the event on the controller side and
process your data accordingly.
Perhaps you should just put a checkbox on the form so the user can
select to "Delete" or "Flag" the application. Then you just need 1
submit button.
--~--~-~--~~~--
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
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