submit form to same form code example
Example: same form two submits
<input type="submit" formaction="example.php">
<button type="submit" formaction="mail.php"> Button</buttton>
<input type="submit" formaction="example.php">
<button type="submit" formaction="mail.php"> Button</buttton>