Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/09/2003, 13:09
daz
 
Fecha de Ingreso: julio-2001
Ubicación: Bogota
Mensajes: 341
Antigüedad: 22 años, 9 meses
Puntos: 4
No llegan las variables

No puedo recoger la variables que le envio de un formulario, aquí tengo un ejemplo:

formulario.html

<HTML>
<BODY>
<FORM METHOD="post" ACTION="mis_datos.php">
<p>Tu nombre <input type="text" name="nombre" size="30" value="Daniel"></p>
<p><input type="submit" value="Enviar datos" name="enviar">
</FORM>
</BODY>
</HTML>


mis_datos.php

<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
<?php
echo $nombre;
?>

</head>
<body>

</body>
</html>



Cuando llega mis_datos.php aparece el siguiente error:

Notice: Undefined variable: nombre in C:\Archivos de programa\Apache Group\Apache2\htdocs\mis_datos.php on line 5



aqui esta el archivo con la informacion del servidor http://www.indoamericana.com/PHP.htm

Gracias