Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/05/2010, 17:12
azer_87
 
Fecha de Ingreso: noviembre-2009
Mensajes: 12
Antigüedad: 14 años, 5 meses
Puntos: 0
Programa simple - error envio de formulario

Hola.. que tal..??
Tengo dos paginas, una que es el formulario con extension HTML y otra que es el script que se ejecuta al tomar los datos del formulario. La idea es llenar el formulario con en nombre y la edad de la persona y luego procesarla con el script PHP. A continuacion las dos paginas

Cargar_datos.html

<html>

<head>
<title>Ejercicio 08 - Cargar datos</title>
</head>

<body>
<form method="post" action="Procesar_datos.php">

<p>Ingrese su nombre:
<input type="text" name="txt_Nombre">
</p>
<p>Ingrese su edad:
<input type="text" name="txt_Edad">
</p>
<input type="submit" name="btn_Enviar" value="Enviar">

</form>
</body>

</html>


Procesar_datos.php

<html>
<head>
<title>Ejercicio 08 - Procesar datos</title>
</head>
<body>

<?php

//$nombre= $_REQUEST['txt_Nombre'];
//$edad= $_REQUEST['txt_Edad'];

echo ("El nombre ingresado es: ".$nombre);
echo ("<br>");

if ( $edad > 18)
echo ($nombre." es mayor de edad, ya que tiene ".$edad);
else
echo ($nombre." es menor de edad, ya que tiene ".$edad);

?>

</body>
</html>

Ambos archivos estan guardados en una misma carpeta. Hasta ahi todo bien...

Ahora al presiona el boton "Enviar" me sale el siguiente error...


Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:/wamp/www/Practica de PHPYA.COM/08 - EnvÃ*o de datos de un FORMULARIO (controles text y submit)/Procesar_datos.php' (include_path='.;C:\php5\pear') in Unknown on line 0

Si alguen me puede ayudar le agradecere... Saludos