no funciona el GET
Publicado por tatiana (2 intervenciones) el 01/09/2010 19:35:21
hola... tengo un problema cuando envio una variable siempre me sale vacia no s eporq...
en un archivo tengo esto:
<a href="Preguntas.php?idP=<?echo $id?>" target="popup" onClick="window.open(this.href, this.target, 'width=680,height=250,scrollbars=yes,resizable=yes'); return false;"> Agregar Preguntas </a>
desde Preguntas.php
intento recuperar la variable asi:
$idP = $_GET['idP'];
pero al hacer echo $idP me sale en blanco.... no en el brwoser me sale me sale esto:
http://www.midominio.com/Preguntas.php?idP=1
entonces i envia la variable.. pero al recuperrarla no funciona
q estoy haciendo mal?
gracias
en un archivo tengo esto:
<a href="Preguntas.php?idP=<?echo $id?>" target="popup" onClick="window.open(this.href, this.target, 'width=680,height=250,scrollbars=yes,resizable=yes'); return false;"> Agregar Preguntas </a>
desde Preguntas.php
intento recuperar la variable asi:
$idP = $_GET['idP'];
pero al hacer echo $idP me sale en blanco.... no en el brwoser me sale me sale esto:
http://www.midominio.com/Preguntas.php?idP=1
entonces i envia la variable.. pero al recuperrarla no funciona
q estoy haciendo mal?
gracias
Valora esta pregunta


0