The value of register_globals can be set to: On or Off. Let’s give a piece of code to describe their differences respectively.
Code:
Copy code The code is as follows:
When register_globals=Off, the next program receives You should use $_GET['user_name'] and $_GET['user_pass'] to accept the passed value. (Note: When the method attribute of
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn