Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
318 views
in Technique[技术] by (71.8m points)

php - $_POST max array size

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}

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.

Xdebug Output

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Try changing max_input_vars as well. More information: PHP max_input_vars and big forms.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...