So here is the situation. You have a form you want two submit buttons, lets say a "Send" and a "Save as Draft" button.
The html page doesn't care what your going to do with the info on the form it just wants to submit it. Your action is awaiting the same information independant of which button is pressed. It perfoms almost the same processes on the data the only difference is that if Send is pressed the form goes through a final submission process. In this example this involves setting a flag on a table to true.
In this case if we set up the html form correctly it will pass a parameter through that will let our action now which button was pressed.
To set up the form we need to add an id, name and value to each submit button as below.