Php form submission long article data loss solution

Source: Internet
Author: User

I found a bunch of files on the internet. The post_max_size and upload_max_filesize values of php. ini are set to a large value, which is useless. The client_max_body_size 500 m of nginx is added to such a large value, which is useless.
Finally, google finally got the solution: the variable max_input_vars was added in PHP from 5.3.9 to limit the number of submitted forms.
Later, I checked the php source code and saw the code:

The code is as follows: Copy code

If (++ count> PG (max_input_vars )){
Php_error_docref (NULL TSRMLS_CC, E_WARNING, "Input variables exceeded % ld. To increase the limit change max_input_vars in php. ini.", PG (max_input_vars ));
Return;
}

Suddenly, php5.3.10 added a configuration command max_input_vars when resolving the hash conflict. Add the value of this command in php. ini.

This value is 1000 by default and cannot meet the requirements of more than 1000 input items. Therefore, you must add a larger value in php. ini, for example:
Max_input_vars = 5000

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.