Hi again 🙂
i made this script but i get a error in line 9.....i think syntaxis is wrong but, i don't know how to fix it.....
PAGE1
<head>
<title>Problema</title>
</head>
<body>
<form action="pagina2.php" method="post">
<strong>Ingrese su nombre:</strong>
<br>
<input type="text" name="nombre">
<br>
<strong>Ingrese su nivel de estudio:</strong>
<input type="radio" name="estudio" value="Primario">Primario
<input type="radio" name="estudio" value="Secundario">Secundario
<input type="radio" name="estudio" value="Terciario">Terciario
<br>
<input type="submit" value="Enviar datos">
</form>
</body>
</html>
PAGE2
<html>
<head>
<title>Problema</title>
</head>
<body>
<?php
echo "<strong>";
echo "Nombre: "$_REQUEST['nombre'];
echo "</strong>";
echo "<br>";
if ($_REQUEST['estudio']=="Primario")
{
echo "Nivel de estudio: <strong>PRIMARIO</strong>";
}
elseif($_REQUEST['estudio']=="Secundario")
{
echo "Nivel de estudio: <strong>SECUNDARIO</strong>";
}
else
{
echo "Nivel de estudio: <strong>TERCIARIO</strong>";
}
?>
</body>
</html>
And i need help to how create 3 IF, because i think that if someone dont put any Study Level, with the ELSE, php will say "TERCIARIO".....
Thanks
[/B]