Reputation: 349
I have many forms in one page,
my question is how to retrieve the ID of the form sent
Upvotes: 0
Views: 116
Reputation: 8519
b.b3rn4rd is correct test for the string of the submit (make sure all of your submit buttons say something different).
if ($this->getRequest()->getPost('submit') == 'Something Unique') {
// do some stuff
}
Upvotes: 1