Ver Mensaje Individual
  #11 (permalink)  
Antiguo 14/03/2011, 00:49
Avatar de s00rk
s00rk
 
Fecha de Ingreso: octubre-2010
Ubicación: Mexico
Mensajes: 238
Antigüedad: 13 años, 6 meses
Puntos: 48
Respuesta: dos botones submit

Porque no hacerlo algo mas sencillo?

Código PHP:
Ver original
  1. <?php
  2.     if( isset($_POST['claro1']) )
  3.     {
  4.         header ('location:ejecuta.php');
  5.     }
  6.     elseif( isset($_POST['claro0']) )
  7.     {
  8.         header ('location:tp.php');
  9.     }
  10.     else
  11.     {
  12. ?>
  13.     <form action="procesa.php" method="post">
  14.     <td><textarea name="histo" cols="50" rows="10"><?=$row[15]?></textarea></td></p>
  15.     <td><input type="hidden" name="id" value="<?=$row[0]?>"/></td>
  16.     <td><input type="hidden" name="dni" value="<?=$row[1]?>"/></td>
  17.     <input type="submit" name="claro1" value="Actualizar"><input type="submit" name="claro0" value="verTP">
  18.     </form>
  19. <? } ?>