Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/01/2008, 16:16
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Ejecutar dos botones dentro de un mismo form

Dale un nombre a tu botón:
Código HTML:
<input type="submit" name="accion" value="Retroceder">
<input type="submit" name="accion" value="Continuar"> 
Posteriormente compara el valor:
Código PHP:
<?php
switch( $_GET['accion'] ) {
      case 
"Retroceder"funcion_atras();
               break;
      case 
"Continuar"funcion_siguiente();
               break;
}
?>
Saludos.