Ver Mensaje Individual
  #6 (permalink)  
Antiguo 18/09/2013, 10:15
neofilo
 
Fecha de Ingreso: abril-2012
Ubicación: Madrid (España)
Mensajes: 162
Antigüedad: 12 años
Puntos: 5
Respuesta: Novato con problemas de novato

Sigo igual.

Código:
<?php 
$enviado = $_GET["enviado"];

if ($enviado == "1") {
echo "El valor de p1 es ".  $_GET["p1"]. "<br/>";
echo "El valor de p2 es ".  $_GET["p2"];
}
?>

<form id="myform" action="" method="GET">
<label for="p1">Primer parametro</label>
<input type="text" id="p1" name="p1"><br/>
<label for="p2">Segundo parametro</label>
<input type="text" id="p2" name="p2"><br/>
<input name="enviado" type="hidden" id="enviado" value="1" />

<input type="submit" value="Enviar Formulario"/>
</form>