no has dicho que quieres que haga cada Boton pero aquí te dejo un Ejemplo. php5
Código PHP:
<form action="" method="post">
Boton_1
<input name="AName" type="text" />
Boton_2<input name="BName" type="text" />
<input name="Boton_1" type="submit" value="Enviar" />
<input name="Boton_2" type="submit" value="Enviar" />
</form>
<?php
if(isset($_POST['Boton_1'])) {
$AValue = 'Boton_1: '. $_POST["AName"];
}{
if(isset($_POST['Boton_2'])) {
$BValue = 'Boton_2: '. $_POST["BName"];
}
}
global $AValue, $BValue;
echo $AValue, $BValue;
?>