note 18714 added to language.variables.scope

From: Date: Fri, 01 Feb 2002 16:33:30 +0000
Subject: note 18714 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-26128@lists.php.net to get a copy of this message
If you want to globalise your post variables, simply use this as the beginning of your code: foreach ($HTTP_POST_VARS as $key => $value) { $GLOBALS[$key] = $value; } Obviously, this works with HTTP_GET_VARS as well, and anything else you could imagine. -- http://www.php.net/manual/en/language.variables.scope.php http://master.php.net/manage/user-notes.php?action=edit+18714 http://master.php.net/manage/user-notes.php?action=delete+18714 http://master.php.net/manage/user-notes.php?action=reject+18714

« previous php.notes (#26128) next »