ID: 17428 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Documentation problem Operating System: Windows XP PHP Version: 4.2.1 New Comment:
I was a bit surprised as well, as there were no hints on making old scripts compatible to PHP's new behaviour. In fact, a simple import_request_variables("gpc"); inserted somewhere at the beginning of your script (usually every script has a config.php, which is included by all other files) would be a good workaround until these scripts are rewritten to "register_globals=off". Previous Comments: ------------------------------------------------------------------------ [2002-05-25 19:12:54] [EMAIL PROTECTED] The intro tutorial says the following: One of the most powerful features of PHP is the way it handles HTML forms. The basic concept that is important to understand is that any form element in a form will automatically result in a variable with the same name as the element being created on the target page. But it is not true any more, since the global variable is turned off by default since 4.1.2 and it is said that it is bad practice to turn it on. There are so many new PHP programmers who stumbled on this one. The scripts they write according to the tutorial simply do not work. Also, there are a lot of scripts written before 4.1.2 that use this feature and they won't work after being downloaded by people who are not familiar with PHP. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17428&edit=1