Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

25 of 31 people (81%) answered Yes
Recently 7 of 10 people (70%) answered Yes


PHP 4.2.3 Problem-Why can't I pass values via URL as in: href="page.php?var1=value1&var2=value2" ?

Nov 28th, 2008 11:13
healthy man, Reza A Tabibazar, Soheil Callage,

register_globals boolean 
Tells whether or not to register the EGPCS (Environment, GET, POST,
Cookie, Server) variables as global variables. For example; if
register_globals = on, the url will
produce $id. Or, $DOCUMENT_ROOT from $_SERVER['DOCUMENT_ROOT']. You may
want to turn this off if you don't want to clutter your scripts' global
scope with user data. As of PHP  4.2.0, this directive defaults to off.
It's preferred to go through PHP Predefined Variables instead, such as
the superglobals: $_ENV, $_GET, $_POST, $_COOKIE, and $_SERVER. Please
read the security chapter on Using register_globals for related
Please note that register_globals cannot be set at runtime (ini_set()).
Although, you can use .htaccess if your host allows it as described
above. An example .htaccess entry: php_flag register_globals on.