multiple submit buttons in one form
<form action="" method="POST">
<!-- fields -->
<button type="submit" name="action" value="save">Save</button>
<button type="submit" name="action" value="preview">Preview</button>
<button type="submit" name="action" value="advanced_edit">Advanced edit</button>
</form>