用页面或表单传递字符串时的转义符问题

WBOY
Release: 2016-06-23 14:13:02
Original
882 people have browsed it

我用页面传递一个字符串参数比如 a.php?c=rr\cc'
在收接页面 echo $_get['c'] 得到是的 rr\\cc\'
使用表单提交为字符串的值也是一样的效果。
请问在接收到怎么直接得到想要传递的原值?


回复讨论(解决方案)

自已找到办法了
用函数stripslashes($str);

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