I have a table with multiple inputs in separate forms which would like each user has 15 from inputs to be passed. In this case I have around 80 users in the table and I have to post all the form inputs at once to the server site.
However, I received PHP warnings about receive more than 1000 input variables and suggest to increase the max cap for the input variables length. I only receive around 75 users form inputs in this case. The form inputs are passed through jQuery method .serialize()
I wonder how to calculate the input variables count in php... I've tried to use count($request->getParams())
and it returns 15 (outer layer keys count) which my returning variables is in this way:
name => array (
[0] => john
....
[79] => Serene
),
age => array (
[0] => 21,
....
[79] => 24,
),
....
In this case, is the variable count in 15 keys times with 80 key-value pair which is 1200 variables in total? Is this the way that PHP to calculate the input variables by calculate all the incoming form inputs?
I know how to count multidimensional array but I just wonder that the PHP whether it determine the input variables length by counting the outer layer keys count or all the keys in the input variables?
(p.s. the table has to post all user information form input due to the design of the code)