$ _POST数组问题 [英] $_POST array question

查看:247
本文介绍了$ _POST数组问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能听起来很愚蠢但是,在我的测试中我注意到我得到了每个

表单字段($ _POST数组键),即使没有填充。我确信''

不是以前的工作方式,但重点是,现在是否可以安全地使用
地址$ _POST数组键而不进行测试以查看它们是否有效存在(因为我知道表格字段名称存在,所以很长时间

)?

解决方案

_POST数组键),即使没有填充。我确信''

不是以前的工作方式,但重点是,现在是否安全

地址


_POST数组键没有测试,看看它们是否存在(因为我知道表格字段名称存在,所以很长时间

)?


William Gill写道:


这可能听起来很愚蠢但是,在我的测试中我注意到我得到了每个

表格字段(

This may sound stupid but, in my testing I have noticed that I get every
form field ($_POST array key), even if not populated. I am sure that''s
not how things worked before, but the point is, is it now safe to
address $_POST array keys without testing to see if they exist (as long
as I know the form field name exists)?

解决方案

_POST array key), even if not populated. I am sure that''s
not how things worked before, but the point is, is it now safe to
address


_POST array keys without testing to see if they exist (as long
as I know the form field name exists)?


William Gill wrote:

This may sound stupid but, in my testing I have noticed that I get every
form field (


这篇关于$ _POST数组问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆