Re: How is this possible?

From: Date: Wed, 28 Oct 2009 17:43:03 +0000
Subject: Re: How is this possible?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-299450@lists.php.net to get a copy of this message
I don't do this personally, but you can probably get your script working by doing something like this: foreach( $_GET as $k => $v ) $$k = $v; You would put that at the top of your page, but be aware that it allows other people to set variables on your page (just like register globals does). If you want to do basic sanitization to your incoming values, such as trimming them, you can do something like this too: foreach( $_GET as $k => $v ) $$k = trim( $v ); None of this is best practices, FYI. Adam. On Wed, Oct 28, 2009 at 10:29 AM, David Otton <phpmail@jawbone.freeserve.co.uk> wrote: > 2009/10/28 tedd <tedd@sperling.com>: >> >> Hi gang: >> > > http://php.net/manual/en/security.globals.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Adam Randall http://www.xaren.net AIM: blitz574

« previous php.general (#299450) next »