Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/10/2007, 00:33
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes
Puntos: 61
Re: resultados de encuesta en popup

He hecho este cambio:
Código PHP:
<form action "action="portada.php?id=resultados" method="post" target = "ventanita" />
Pregunta?<br>

<input type=radio name="
respuesta" Value="1"> Opcion 1<br>
<input type=radio name="
respuesta" Value="2"> Opcion 2 <br>
<input type=radio name="
respuesta" Value="3"> Opcion 3<br>
<input type="
submit" value="Votar" onclick="ventanita window.open('about:blank','ventanita','width = 500,height = 400')">
</form> 
He probado en mi servidor y funciona:

http://www.karlankas.net/encuesta

El código que he puesto en mi "portada.php" es:

Código PHP:
<html>
<head>
    <title>Untitled</title>
</head>

<body>
<strong>La sección es: <?=$_GET['id'];?></strong><br>

Has respondido: <?=$_POST['respuesta'];?>

</body>
</html>
Espero que te sirva!
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.