PHP Forms Submit a large amount of data loss resolution

Source: Internet
Author: User
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!
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.