PHP Forms Submit a large number of data loss resolution _php Tips

Source: Internet
Author: User
Tags html form

Recently in the project, there is a strange phenomenon, there is a large form with thousands of input, the time to submit, always find the post data incomplete, at the beginning of the suspect is the HTML form name conflict, ruled out.
Then, on the Internet to find a bunch, php.ini post_max_size and upload_max_filesize are set a great value, no use, nginx client_max_body_size 500m; Added to such a large value, also useless.
Finally, Google to approach: the original PHP from 5.3.9 began to add a variable max_input_vars to limit the number of submitted forms, really no language.


This value is 1000 by default and cannot meet the requirement of more than 1000 entries, so add a larger value to the php.ini:
Max_input_vars = 5000
After the change restart Apache, finally all normal!

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.