PHP问号传值有关问题

WBOY
Release: 2016-06-13 10:17:09
Original
1240 people have browsed it

PHP问号传值问题
传值页面
 

">加好友


接受页面


$py=$_POST["py"];


为什么接收不到py这个值呢?求高人指点,坐等………………

------解决方案--------------------
$py=$_GET["py"];
或者
$py=$_REQUEST["py"];
------解决方案--------------------
楼主是GET的方式传递。应该是$_GET["py"]
------解决方案--------------------
url传值应该用GET接受
------解决方案--------------------
楼上说的是。
1、url传值使用get的方法传值,应该用$_GET 获取。
2、特殊字符没有转义是否能够成功传递,lz不妨试试。

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