$_POST 最大数组大小 [英] $_POST max array size

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

问题描述

我有一个非常大的表单,包含 >1000 个元素.它们已经嵌套在表单 html 结构中

I have a really big form with >1000 Elements. They are already nested inside the form html structure

                {foreach from=$result item=item}
                    <tr>
                        <td><input type="text" value="{$item.receiver.name}" name="item[{$item.id}][receiver][name]" /></td>
                        <td><input type="text" value="{$item.receiver.account_number}" name="item[{$item.id}][receiver][account_number]" /></td>
                        <td><input type="text" value="{$item.receiver.bank_code}" name="item[{$item.id}][receiver][bank_code]" /></td>
                        <td><input type="text" value="{$item.amount}" name="item[{$item.id}][amount]" /></td>
                        <td><input type="text" value="{$item.usage.first}" name="item[{$item.id}][usage][first]" /></td>
                        <td><input type="text" value="{$item.usage.second}" name="item[{$item.id}][usage][second]" /></td>
                        <td><input type="text" value="Yourdelivery GmbH" name="item[{$item.id}][usage][third]" /></td>
                        <td>
                            <input type="checkbox" value="1" name="item[{$item.id}][import]" />
                        </td>
                    </tr>
                {/foreach}

它是为大量银行交易创建一个DATAUS文件.但是在达到超过 1000 行后,不再向 $_POST 数组添加元素,并且调试器显示以下元素计数.

It is to create a DATAUS file for mass bank transactions. But after reaching more than 1000 rows no more elements are added to the $_POST array and the debugger shows the following element count.

我已经将 max_post_size 添加到 100M 进行测试,但没有任何帮助.

I already added max_post_size to 100M for testing, but nothing helped.

推荐答案

尝试更改 max_input_vars 也是如此.更多信息:PHP max_input_vars 和大表格.

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

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