Increase quantity of form inputs sent in post php

1

I work with a free system and I have a problem in a routine where the system creates an item table, and for each value field of each item an input is created, where name receives the item code, however In this case, there are more than 400 items, and when you click on include, it only comes from the other side in POST 327 items, do you have an idea how I can increase the amount of fields sent via POST by the form?

    
asked by anonymous 19.04.2016 / 15:15

1 answer

2

Open php.ini and change the value of max_input_vars to an appropriate number. This setting defines the number of inputs sent in a request, it may be necessary to change the value of post_max_size which is the size (mb / gb ) of information sent, after the modification restart apache.

Example:

max_input_vars = 600
post_max_size = 16mb

To view the current values of these directives do:

<?php
   echo ini_get('max_input_vars') .'<br>';
   echo ini_get('post_max_size');
    
19.04.2016 / 15:20