June 28 2015

PHP some variable fail to post data to server

Tagged Under :

php
This was my first time facing this problem. When I post more than 1000 variable value to server, it only show me 1000 variable received and the rest was missing.

To solve this problem you need to increase max_input_vars number in PHP.ini to 3000 or 5000. It was because the max_input_vars default value was 1000. If you post more than the value server will ignore the rest.

if your server uses the Suhosin patch or after change the max_input_vars number the problem still same. you can try add
suhosin.post.max_vars = 3000 
suhosin.request.max_vars = 3000
to increase the maximum number of post variable.

Make a Comment

You must be logged in to post a comment.