Today while working on a project, after submitting a form, the array $_POST was not displaying value of all variables of the form. Since the method of the form was POST and so first of all I increased the value of the parameter post_max_size in php.ini file. But even after that the array $_POST was not storing value of all variables. Then I started looking for all other parameters related to variables in php.ini. I found that the value of the parameter max_input_vars was set to 1000. So due to this, the array $_POST was containing the value of first 1000 variables only. I then increased this value to 3000. Then the program started working perfectly. So while changing the value of post_max_size we should also check the value of max_input_vars parameter in php.ini file.