Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/08/2007, 21:22
Avatar de manumaf
manumaf
 
Fecha de Ingreso: mayo-2007
Ubicación: Argentina
Mensajes: 854
Antigüedad: 17 años
Puntos: 6
Pregunta sobre la accion de un formulario

Hola recien empieso con PHP y no me sale una cosa

tengo este codigo html

Código HTML:
<html>
<head>
<title>Problema</title>
</head>
<body>
<form action="pagina2.php" 
  method="post">
   Nombre:
   <input type="text" name="nombre">
   <br>
   <input type="radio" name="radio1" value="primario">primario
  <br>
  <input type="radio" name="radio1" value="secundario">secundario
  <br>
  <input type="submit" name="envia">
  </form>

</body>
</html> 
y esta es la accion
Código PHP:
<?php

echo "su nombre es";
echo 
$REQUEST['nombre']


 if (
$_REQUEST['radio1']=="primario")
{
 echo 
"Su estudio es de nivel primario";
}
else
{
 if (
$_REQUEST['radio1']=="secundario")
 { 
   echo 
"su estudio es de nivel secundario";
 }
}
Los que esta mal es apena empiesa el codigo donde aprese el nombre por que sin eso si me anda como ago para ponerlo bien