I am starting the learning of forms in HTML and PHP, and I managed to create a button that sends the entered data to a MySQL database entered by the user.
My question is, how can I put more buttons in the same form and that each one perform a different action? I ask this because from what I have understood the part of "action" within the code of the form is the action that takes place when you click on the button.
Example:
<div><center>
<form method="post" action="InsertarSQL.php" class="forma">
Complete form code
<div><center>
<form method="post" action="InsertarSQL.php" class="forma">
<input type="Text" name="apellido_pat" placeholder="Apellido Paterno"><br>
<br>
<input type="Text" name="apellido_mat" placeholder="Apellido Materno"><br>
<br>
<input type="Text" name="nombre" placeholder="Nombre"><br><br>
<input type="Text" name="puesto" placeholder="Puesto"><br><br>
<input type="Text" name="edad" placeholder = "Edad"><br><br>
<input type="Submit" name="enviar" value="Agregar registro">
</form>
</center></div>
</div></center>
<a href="Principal.html" class="init">Inicio</a>
</body>