Search code examples
phpxampp

How to change max_input_vars


I have a form with over 1000 inputs, it shows warning below:

Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

I have changed max_input_vars to more than 1500 in php.ini file but it does not take effect and shows the same error.

My project details:

  • Server: Localhost XAMP
  • PHP version: 5.5.15
  • System OS: windows 7

How can I clear this warning?


Solution

  • ASH's suggested

    ini_set('max_input_vars','2000' );
    

    but this never work with ini_set. You need to set it with php.ini or .htaccess file only.