I have two forms with two submit buttons on the same page, one view and one controller should manage them. I want him to perform one action if the first clicked, and another action if the second. I tried this when editing is the form name, but it does not work:
if($this->getRequest()->get('edit'))
I also tried setting the value to the submit buttons, but I couldn't do it either. Please help me find a way to determine which button was clicked. :)
source share