post 提交二维数组_通过POST将多维数组从表单提交到PHP

post 提交二维数组

After much searching on the subject myself, I've found that many people have wondered whether it's possible to submit a multidimensional array from an HTML form to a PHP script.  And for some reason, all the articles answering this query are convoluted or wrong.  The answer is simple: YES!

在我自己对该主题进行了大量搜索之后,我发现许多人想知道是否可以从HTML表单向PHP脚本提交多维数组。 出于某种原因,所有回答此查询的文章都是令人费解或错误的。 答案很简单:是的!

It is not only possible, but very straight-forward to submit a multi-dimensional array from a form to a PHP script.  The functionality was added in PHP 4 (and nobody but... well nobody... should still be using a version of PHP prior to 4).   Here is how it works:

从表单向PHP脚本提交多维数组不仅可行,而且非常简单。 该功能是在PHP 4中添加的(没有人,但是……好吧……应该仍然使用4之前PHP版本)。 下面是它的工作原理:

Let's say you want to let someone pick several "options"

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值