I once asked a question here. Why is a lot of variables created by passing json via pjax post?
Actually, it is also related to your question. If you have a bunch of variables, then it is logical that the limit on their number is played by the server. And then you can increase max_input_vars in the php.ini settings. But it is better to make them in the form of a single variable, first making a JSON object and then send using JSON.stringify .
Like that:
$.ajax({ type: 'POST', url: path, data: { jsonData: JSON.stringify(data) // <--- ключевой момент } success: function(response){ // ... } });
The server will be like this:
json_decode($_POST['jsonData']);