I was wondering if it is possible to place 2 submit buttons if send either of its information when click.
Example:
Just set them both to type="submit". It will already do that.
Remember, hitting enter on the form is like clicking on the submit button that appears first in your source.
Given your code there, if you change the ignore button to be type="submit"
then it'll do what you want.
In the POST, you'll see this:
// if Confirm clicked:
REQUESTID -> requestId
BYID -> byId
TOID -> toId
respond -> Confirm
// if Ignore clicked:
REQUESTID -> requestId
BYID -> byId
TOID -> toId
respond -> Ignore