Multiple Submit Buttons

Stackoverflow

HTML

<input type="submit" name="update_button" value="Update" />
<input type="submit" name="delete_button" value="Delete" />

PHP

if (isset($_POST['update_button'])) {
  //update action
} else if (isset($_POST['delete_button'])) {
  //delete action
} else {
  //no button pressed
}