Let’s talk about the problem directly. I used Jquery (1.6) Ajax request on a page and used post. The array passed and displayed has more than 500 items. The PHP side can only receive about 50 items. At first I thought it was a problem with the web server settings, so I changed things like max_upload_size. But it had no effect. Later I tried to use max_input_vars, which is a new trick, and it worked a little at first. Later, when the customer's data exceeded 2000, it was still the same. The PHP side still could not fully receive the data sent by Ajax. Finally, I found the solution on a foreign website.
Before sending the post, use JSON.stringify to process the variables to be sent, and it will be ok. What is JSON.stringify? ? ? Please move here: http://www.jb51.net/article/29893.htm