Just use two of the same form. One for each button:
Also, if you would done your research you would find these:
- Javascript onsubmit with form with multiple submits buttons
- HTML form with two submit buttons and two "target" attributes
- Form onSubmit determine which submit button was pressed
- How can I get the button that caused the submit from the form submit event?
Two submit buttons in one form