Home > Backend Development > PHP Tutorial > 关于get获取数据,该如何处理

关于get获取数据,该如何处理

WBOY
Release: 2016-06-13 11:58:00
Original
971 people have browsed it

关于get获取数据
网址为1.php?a=x


网页里面直接
echo $a;

什么时候可以输出x什么时候输出空啊

刚刚测试的, 本机上面直接输出x,而放到服务器上面就是空,不知道神什么规律
------解决方案--------------------
php有个配置项register_globals,让$a接收到$_GET['a']的值...因为漏洞太大很早就默认关闭了

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template