Home > Backend Development > PHP Tutorial > PHP GET方法传中文参数,PHP接收不到解决方法

PHP GET方法传中文参数,PHP接收不到解决方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:07:03
Original
1808 people have browsed it

PHP GET方法传中文参数,PHP接收不到
http://127.0.0.1/index.php?admin&q=module/user/list&site_id=50&a=userinfo&realname=%D2%FC%BD%A8%C0%A4

LINUX 服务器下,$data['realname']=$_GET['realname'];,该方法获得不了realname参数,本地测试没有问题,求各位大神解释!!

------解决思路----------------------
var_dump($_GET);//看看输出什么数据
------解决思路----------------------

header('Content-type: text/html;charset=GBK');<br />echo urldecode('%D2%FC%BD%A8%C0%A4');
Copy after login
Copy after login
尹建坤

------解决思路----------------------
引用:
header('Content-type: text/html;charset=GBK');<br />echo urldecode('%D2%FC%BD%A8%C0%A4');
Copy after login
Copy after login
尹建坤
++.
------解决思路----------------------
问题出在 slog 函数中,你在外面找原因自然不行的

Related labels:
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