Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/04/2012, 10:22
Avatar de SirDuque
SirDuque
 
Fecha de Ingreso: febrero-2009
Ubicación: Paso del Rey, Buenos Aires, Argentina
Mensajes: 975
Antigüedad: 15 años, 2 meses
Puntos: 89
Respuesta: Botones en PHP LINK

Estos profesores no saben que existe internet xD

OPCION 1:
Esto no es javascript es HTML

Código HTML:
Ver original
  1. <a href="GO.php">  <button type="button" borde=0/>
  2.         GO
  3.     </button>
  4. </a>
  5.  
  6. <a href="WTF.php">  <button type="button" borde=0/>
  7.         WTF
  8.     </button>
  9. </a>
  10.  
  11. <a href="STOP.php">  <button type="button" borde=0/>
  12.         STOP
  13.     </button>
  14. </a>

OPCION 2:
HTML + PHP
Código HTML:
Ver original
  1. <form  action="redireccionar.php" method="POST">
  2.  <input name="GO" type="submit" value="GO" /> <br>
  3.  <input name="WTF" type="submit" value="WTF" /> <br>
  4.  <input name="STOP" type="submit" value="STOP" /> <br>
  5. </form>
redireccionar.php
Código PHP:
<?php
if ( isset($_POST['GO']) ) 
    
$url GO.php

if ( isset(
$_POST['WTF']) ) 
    
$url WTF.php

if ( isset(
$_POST['STOP']) ) 
    
$url STOP.php

header("Location: $url");
exit;
Espero que alguna te sirva.
__________________
Mono programando!
twitter.com/eguimariano