Html form has more than 1000 fields. so form is break after 1000 fields.How to increase the php gobal variable max_input_vars.
ini_set('max_input_vars',3000);// is not working
echo phpinfo();//show only 1000
My Answer:
To increase the max_input_vars variable in PHP, you need to update the php.ini file. Here's how you can do it:
1. Locate your php.ini file. This file is usually located in the /etc/php/ directory on Linux systems or in the PHP installation directory on Windows systems.
2. Open the php.ini file in a text editor.
3. Search for the max_input_vars variable in the php.ini file. If it doesn't exist, you can add it at the end of the file. The line should look like this:
max_input_vars = 3000
4. Save the php.ini file and restart your web server for the changes to take effect.
After increasing the max_input_vars variable in the php.ini file, you should be able to submit forms with more than 1000 fields without any issues.
Rate this post
4 of 5 based on 4215 votesComments