Re: $PHP_SELF sobreA Form Action

From: Date: Wed, 15 Jan 2003 05:51:17 +0000
Subject: Re: $PHP_SELF sobreA Form Action
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-31195@lists.php.net to get a copy of this message
olas... +Salud...2+ Antes, disculpen por exponer mi problema tan claro como el agua turbia; pero gracias a sus intentos o tanteos por entenderme y a sus variadas sugerencias, pues logre fijar el error (ahora voy tras otros). La cuestion estaba entre los comentarios de Javier : " definir si la accion existe ... " (medio sordo quede por el grito que dio, uuuy !! ;-) ) if (isset($_POST['accion'])){ blablabla.. } En los otros casos : <FORM action="<?$PHP_SELF;?>?action=login" method="post"> "<?=$PHP_SELF;?>... ; "<?echo$PHP_SELF;?>... ; "<?php print$PHP_SELF;?>... ; no iba por alli. Aunque para este caso, lo mio tambien esta en lo cierto, (s.e.u.o). Las gracias les doy, pues se aprende de todo y de todos, joya big11ko wrote:
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.
       }
[...]


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