PHP Maximum POST Variable Limit
When handling POST requests with numerous input fields, a common issue arises when the number of variables exceeds the default limit in PHP. For example, forms with more than 1000 fields may only expose the first 1001 variables in the $_POST array.
To resolve this issue, it is necessary to adjust the maximum number of POST variables allowed by PHP. Introduced in version 5.3.9, the max_input_vars configuration option controls this limit, which is initially set to 1000.
Changing the Limit
There are multiple ways to modify the max_input_vars value:
max_input_vars =
php_value max_input_vars
php_value max_input_vars
After making changes to the configuration, restart the web server to apply the new settings. The maximum number of POST variables allowed should now match the specified max_input_vars value.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3