Re: Problemas con un formulario

From: Date: Mon, 18 Nov 2002 09:20:33 +0000
Subject: Re: Problemas con un formulario
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-29411@lists.php.net to get a copy of this message
Dilluns Novembre 18 2002 09:21, jordi juarez dixit: > Hola estoy empezando en esto del php y tengo un problema con la lectura > de las variables creo un formulario simple > <html> > <head> > <title>Untitled Document</title> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1"> > > </head> > > <body bgcolor="#FFFFFF" text="#000000"> > <form name="form1" method="post" action="leeme.php"> > <p> > <input type="text" name="nombre"> > </p> > <p> > <input type="text" name="apellido"> > </p> > <p> > <input type="submit" name="Submit" value="ok"> > </p> > </form> > </body> > </html> > y cuando intento leer la variable tex1 o tex2 desde leeme.php no me > encuentra la variable En tu formulario no estás definiendo ninguna variable llamada $text1 o $text2, sino $nombre y $apellido. Otra cosa: si tienes la directiva register_globlas=Off en tu php.ini, no vas a recibir esas variables directamente, sino en los arreglos predefinidos $_POST y $_REQUEST, o sea, $_POST['nombre'] y $_POST['apellido'] Saludos Àngel

« previous php.general.es (#29411) next »