[Solved] POST array in php not showing all the elements [closed]


max_input_vars integer

How many input variables may be accepted (limit is applied to $_GET, $_POST and $_COOKIE superglobal
separately). Use of this directive mitigates the possibility of denial
of service attacks which use hash collisions. If there are more input
variables than specified by this directive, an E_WARNING is issued,
and further input variables are truncated from the request.

Set the max_input_vars to a bigger number.

ini_set('max_input_vars', 5000);

I also notice in your code that you’re nesting a lot of values.

max_input_nesting_level integer

Sets the max nesting depth of input variables (i.e. $_GET, $_POST..)

ini_set('max_input_nesting_level', 5000);

It may be better if you do this within your php.ini file. If you do, make sure you restart. sudo service httpd restart (assuming you’re running Apache)

solved POST array in php not showing all the elements [closed]