POST does not send all data

I have a screen with about 135 flags

<input type="checkbox" name="orders_id[] value="1"/>
<input type="checkbox" name="orders_id[] value="2"/>
.........
<input type="checkbox" name="orders_id[] value="135"/>

I check all the checkboxes and submit, but in $_POSTI see only 107 tags received.

What happened to the missing data?

I changed POST_MAX_SIZEto 20M, but this did not solve the problem.

I checked the browser HEADER using the Chrome Developer Tools. I see all 135 verified data there, but in PHP, when I check $_POST['orders_id'], I just get 107 of them.

+4
source share
1 answer

With this many checkboxes, if there are other inputs in your form, you can exceed the PHP setting max_input_vars. The PHP manual defines this parameter as:

( $_GET, $_POST $_COOKIE ). , -. , , E_WARNING, .

, php.ini , .

+2

Source: https://habr.com/ru/post/1655487/


All Articles