Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/06/2006, 08:37
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
Código HTML:
<form action="file.php" method="post">
<input type="submit" name="funcion" value="funcion 1">
<input type="submit" name="funcion" value="funcion 2">
<input type="submit" name="funcion" value="funcion 3">
</form> 
Código PHP:
switch( $_POST['funcion'] ) {
case 
"funcion 1":
   
// cosas
   
break;
case 
"funcion 2":
   
// otras cosas
   
break;
case 
"funcion 3":
   
// otras cosas
   
break;