Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/05/2003, 07:25
alid
 
Fecha de Ingreso: diciembre-2002
Ubicación: Caracas D.F.
Mensajes: 144
Antigüedad: 22 años, 2 meses
Puntos: 0
ok. es importante que sepan que estoy trbajando con php para la encuesta pero el llamado al popup lo realizo logicamente con javascrip. hay te va el js

<script LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,men ubar=0,resizable=0,width=560,height=240');");
}

// -->
</script>


y el php


<?

$tema = file("encuesta/tema.txt");
$opcion1 = file("encuesta/opcion1.txt");
$opcion2 = file("encuesta/opcion2.txt");
$opcion3 = file("encuesta/opcion3.txt");
$opcion4 = file("encuesta/opcion4.txt");
$lineas = count($tema);

for ($i=0; $i<$lineas; $i++){

echo "<tt><b>$tema[$i]<br>";


echo "<input type='radio' name='voto' value='1'>";
echo "<tt><b> $opcion1[$i]<br>";
echo "<input type='radio' name='voto' value='2'>";
echo "<tt><b> $opcion2[$i]<br>";

echo " <input type='submit' name='Submit' value='Votar'>";
?>

ok. el php esta dentro de un formulario en el action del formulario le coloco esto action="javascript:popUp('encuesta/proceso.php')"...

otra cosa KAOPECTATE cuando yo no realizo la accion con un popup el se ejecuta sin ningun problema, y se que no pasa las variables por que tengo un contador en el modulo que ejecuta el registro y el si se me incrementa...

de verda disculpa el abuso y espero por tu respuesta