Re: viewing get/post variables

From: Date: Tue, 16 Apr 2002 14:45:43 +0000
Subject: Re: viewing get/post variables
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-93199@lists.php.net to get a copy of this message
On Mar 16 Abr 2002 11:33, Steve Edberg wrote: > You might be thinking of the register_globals parameter here, instead > of safe_mode: > > > http://php.he.net/manual/en/configuration.php#ini.register-globals > > It is, in general best to keep this off so that you can explicitly > validate user input. If you trust the POST or GET data, though, you > can turn register_globals ON or use the extract() function - > > http://php.he.net/manual/en/function.extract.php > > - for example: > > extract($HTTP_GET_VARS); > echo $var1; > > or in a function, > > extract($GLOBALS['HTTP_GET_VARS']); > echo $var1; > > I don't think the safe_mode setting affects this, but I'm not sure. > Some of the default settings may have changed between 4.0.6 & 4.2; > that might explain why behavior changed after upgrading. The extract worked great, but this looks like a bug in 4.2RC1, because register_globals is On. Thanks anyway! -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------

« previous php.general (#93199) next »