|
|
1
3
部分
urldecode
的功能是
所以:
现在,
the superglobals $_GET and $_REQUEST are already decoded. Using urldecode() on an element in $_GET or $_REQUEST could have unexpected and dangerous results
从你的问题来看,我不确定你到底在处理什么,但是看看PHP手册中关于urldecode的评论, here is a comment you may be interested in :
|
|
|
2
2
PHP确实可以解码您的数据。问题是它是双重编码的。
glopes@nebm:~$ php -r "echo urldecode(urldecode('%253Cp%253E%250A%2509Test%25
20test%2520-%2520this%2520will%2520disappear%253A%2520%2B%253C%2Fp%253E%250A')
);"
<p>
Test test - this will disappear: </p>
如你所见,你必须打电话
你可以用
|
|
|
3
1
这是我的解决办法,我也有同样的问题。 发送数据的JavaScript代码:
然后通过邮寄和
下面是接收数据的php代码:
|