new PHP 4.2.2 can pass values through form/URL ---------------------------------------------- in /etc/php.ini: ... ; Whether or not to register the EGPCS variables as global variables. You may ; want to turn this off if you don't want to clutter your scripts' global scope ; with user data. This makes most sense when coupled with track_vars - in which ; case you can access all of the GPC variables through the $HTTP_*_VARS[], ; variables. ; ; You should do your best to write your scripts so that they do not require ; register_globals to be on; Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. register_globals = On ... the default values if Off In another way, use javascript can pass values in form/URL with register_globals is "Off" Refer <http://www.php.net/manual/en/faq.html.php> |