If you take a look at the HTML for, say, a standard submit button:
HTML:
<input type="submit" name="submit" value="Submit">
<input type="submit" name="submit" value="Preview">
you'll see that the button is actually a type of form input with a name and a value. The value sent to the server would depend on which of the buttons you click, and since both of the buttons have the same field name, there's only one value to test. You can pick that up, just as you can with any other type of input, using
$_POST["submit"].
The value of a submit-type input element is also the text displayed on the button. If you use a button-type element, you can keep the value and the display text separate, just make sure to make the name attribute the same for all of your submit buttons. The different values will allow your target script (the URI in the action attribute) to process the page differently depending upon which button was clicked.