Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/07/2011, 20:25
nrdr92
 
Fecha de Ingreso: julio-2011
Mensajes: 3
Antigüedad: 12 años, 9 meses
Puntos: 0
Respuesta: RadioButton y PHP

Buenas estoy intentando hacer un test de agilidad mental en php con botones de opcion esto es lo que tengo
<?
session_start();
?>
<form method="post" action="evaluar.php">
<br/>
1¿Tienen un 5 de Julio en inglaterra?.
<br/>
<input type="radio" name="pregunta1" value="1"/>si
<br/>
<input type="radio" name="pregunta1" value="0"/>no
<br/>
<input type="radio" name="pregunta1" value="0"/>no se
<br>
<?
$_SESSION['pregunta'][1]="pregunta1";
?>

asi consecutivamente hasta 10 preguntas, lo estoy haciendo a traves de bloc de notas este es mi formulario y en mi evaluar.php tengo
<?
session_start();
?>
<html>
<body>
<?
$nota=0;
for($i=1;$i<=20;$i++)
{
$nota=$nota+$_POST['$_SESSION['pregunta'][$i]'];


}
echo"Su nivel de agilidad mentas es $nota";

?>
PERO CUANDO LO EJECUTO NO ME APARECE NADA, ES DECIR NO TRAE LOS DATOS!!! PLIS AYUDENME