Eth*_*len 7 php post urldecode
据http://php.net/manual/en/function.urldecode.php,PHP确实urldecode()在$_GET和$_REQUEST(包含$_POST).
urldecode()
$_GET
$_REQUEST
$_POST
但直接调用$_POST已解码?
Bar*_*mar 15
是的,您通过$_GET并$_POST解码的所有参数.
urldecode()文档未提及的原因$_POST是因为POST数据可能不是首先进行URL编码.这取决于POST数据是以application/x-www-form-urlencoded格式还是multipart/form-data格式提交.
application/x-www-form-urlencoded
multipart/form-data
但这一切对应用程序都是透明的.
但是文档$_GET确实明确提到了这一点.
注意: GET变量通过urldecode().
归档时间:
9 年,11 月 前
查看次数:
4223 次
最近记录:
6 年,8 月 前