Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML & PHP input[] <- array ? Limitations

It's more of a wether can someone confirm my theory, as for going short ways, when you add another input which shall have similar name ex. myvar_0, myvar_1 you are supposed to use javascript to generate those inputs, but there is input "array" type, where you crate an input with name myvar[], myvar[], myvar[] and this acts as an array and passes values via post to PHP as an array, but recently i've discovered that for some weird reason this array has limitation of 197 values ( or 196 is the maximum capable index value ) as on chrome for now ( didn't text it on other browser ).

So does anyone else encoutered a similar problem ?

like image 907
Adam Avatar asked Jul 08 '11 10:07

Adam


1 Answers

If you're using suhosin, that brings a limit to the max_vars sent via POST.
Default is set to 200, so could be your problem.

See: suhosin.post.max_vars

like image 157
enricog Avatar answered Oct 11 '22 02:10

enricog