Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/10/2008, 11:54
thezzin
 
Fecha de Ingreso: septiembre-2008
Mensajes: 350
Antigüedad: 15 años, 8 meses
Puntos: 31
Respuesta: funcion onclick

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;
?>