This article describes how to change the maximum number of input variables allowed for PHP scripts by using the max_input_vars directive in an .htaccess file.
PHP obtains input variables from HTML forms (through GET and POST requests), as well as from any cookies enabled on a page. By default, the maximum number of input variables allowed for PHP scripts is set to 1000. You can change this amount by setting the max_input_vars directive in an .htaccess file.
To change the maximum number of input variables allowed for PHP scripts, follow these steps:
php_value max_input_vars 1000
<?php phpinfo(); ?>
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.