Studiati questo codice:

Codice PHP:
<form method="post">
    <input type="submit" name="button" value="INSERT" />

    <input type="submit" name="button" value="EDIT" />
</form>
<pre><?php print_r($_POST); ?></pre>