php - POST not sending all data -
i have screen 135 checkboxes
<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 of checkboxes , submit, in $_post
see 107 checkboxes received.
what happened missing data?
i changed post_max_size
20m did not resolve problem.
i checked on header of browser chrome developer tools. can see all 135 checked data there, in php when check $_post['orders_id']
, 107 of them.
with many checkboxes, if there other inputs on form may exceeding php's max_input_vars
setting. the php manual defines setting as:
how many input variables may accepted (limit applied $_get, $_post , $_cookie superglobal separately). use of directive mitigates possibility of denial of service attacks use hash collisions. if there more input variables specified directive, e_warning issued, , further input variables truncated request.
you can fix increasing setting in php.ini, or reducing number of inputs in form fit limit.
Comments
Post a Comment