diff --git a/reference/var/functions/import-request-variables.xml b/reference/var/functions/import-request-variables.xml index ed4fa8e979..185489127d 100644 --- a/reference/var/functions/import-request-variables.xml +++ b/reference/var/functions/import-request-variables.xml @@ -1,5 +1,5 @@ - + @@ -37,14 +37,21 @@ a prefix "pref_", then you'll get a global variable named $pref_userid. + + If you're interested in importing other variables + into the global scope, such as SERVER, consider using + extract. + - Although the prefix argument is - optional, you will get a notice level error, if you - specify no prefix, or specify an empty string as a + Although the prefix parameter is + optional, you will get an + E_NOTICE level error if + you specify no prefix, or specify an empty string as a prefix. This is a possible security hazard. Notice level errors are not displayed using the default - error reporting level. + error reporting + level. @@ -53,12 +60,15 @@ // This will import GET and POST vars // with an "rvar_" prefix import_request_variables("gP", "rvar_"); + +print $rvar_foo; ]]> - See also register_globals - and track_vars. + See also register_globals, + Predefined Variables + and extract.