PHP forms to submit a large number of data, thousands of text boxes when data loss, incomplete data and other problems to solve the problem, the need for friends can refer to the following
Recently in the project, there is a strange phenomenon, there is a large form inside there are thousands of input, when submitted, always found that the post came to the data is not complete, at the beginning also suspected that the name of the HTML form conflict, ruled out.
Then, on the Internet to find a bunch of php.ini post_max_size and upload_max_filesize have set a very large value, useless, nginx client_max_body_size 500m, added to such a large value, also useless.
Finally Google to approach: originally PHP from 5.3.9 began to add a variable max_input_vars to limit the number of forms submitted.
This value is 1000 by default and does not meet the requirements for more than 1000 entries, so you have to add a larger value to the php.ini, such as:
Max_input_vars = 5000
Restart Apache after modification, finally everything is OK!