note 41280 deleted from language.variables.predefined by irchtml
| From: | irchtml@php.net | Date: | Mon, 05 Apr 2004 18:44:00 +0000 |
| Subject: | note 41280 deleted from language.variables.predefined by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67668@lists.php.net to get a copy of this message | ||
Note Submitter: stef [at] 3form [dot] net
----
Having trouble with register_globals set to off, and no way of turning it on because of your hosting
agreement, or trying to move a legacy PHP site?
foreach ($_GET as $key => $value) {
$$key = $value;
}
This function sets global variables for all of variables sent via GET.
I.e. http://www.somewhere.com/myscript.php?name=value
sets a global variable $name = "value"
Obviously this has security implications, so use wisely!