RE:[PHP-ES] $PHP_SELF sobreA Form Action

From: Date: Tue, 14 Jan 2003 11:46:53 +0000
Subject: RE:[PHP-ES] $PHP_SELF sobreA Form Action
Groups: php.general.es 
Request: Send a blank email to general-es+get-31127@lists.php.net to get a copy of this message
prueba lo siguiente: ejecuta tu script y luego analiza el codigo html generado. Si puedes, envíame ese codigo generado para revisarlo. Saludos. -- Mensaje Original -- Enviado por: big11ko <big11ko@softhome.net> Fecha: 14/01/2003 18:01:07 Para: PHP es<lista@phpes.com> Título: [PHP-ES] $PHP_SELF sobreA Form Action olas ... +Salud...2+ Tengo este problema y.... necesito alguna referencia para solucionaresto Aqui parte del script e informacion adicional : - register_globals=off Los mensajes de error son de variable indefinida Notice: Undefined variable: action in Notice: Undefined variable: action in Claro, que no por esto deja de funcionar el script. Es que no me gusta pe... Se agradece la informacion y/o sugerencias joya [...] $PHP_SELF=$HTTP_SERVER_VARS["PHP_SELF"]; [...] <FORM action="<?$PHP_SELF;?>?action=login" method="post"> # He probado con : <FORM action="<?$_SERVER["PHP_SELF"];?>?action=login" method="post"> pero se agrava # la situacion. <P>Username: <INPUT type="text" name="username"> <P>Password: <INPUT type="password" name="password"> <P><INPUT type="submit" value="Log-in"> </FORM> <?endif; [...] <?exit; }?> </body> </html> [...] <!--signup.phtml--> <html> <head> <title>Accion de Login</title> </head> <body> <? if($action == "login") { # Aqui probe con : if ($HTTP_GET_VARS['action']=="login") { # y obtengo indefinido indice # Hacer bla,blailled out. } [...] __________________________________________________ Todavía no tenés tu Ciudad Internet Mail? Obtenelo ahora! - http://webmail.ciudad.com.ar Descargá Gratis el nuevo Internet Explorer 6.0, el mejor software para actualizar tu PC. http://www.ciudad.com.ar/ar/servicios/ie/

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