Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/10/2009, 19:02
thezzin
 
Fecha de Ingreso: septiembre-2008
Mensajes: 350
Antigüedad: 15 años, 7 meses
Puntos: 31
Respuesta: Enviar variables sin usar el form method

Por el método $_GET[] puedes hacerlo así:

Código PHP:

<input type="button" onClick="window.location= '<?php echo $_SERVER['PHP_SELF']; ?>?name=Pepito';" value="Enviar" />
<?php 
if(isset($_GET['name'])){
echo 
'Tu Nombre es  <b>'.$_GET['name'].'</b>';
}
?>
__________________
╬-----╬
║☺₧☻║
╬-----╬