jQuery send HTML data through POST

后端 未结 4 1042
遥遥无期
遥遥无期 2020-12-03 03:13

I am using jQuery to make a POST to a PHP file with the HTML content of a div. The HTML content contain tables, inputs, smaller divs and I would like to grab the content of

4条回答
  •  遥遥无期
    2020-12-03 03:35

    If you want to send an arbitrary amount of data to your server, POST is the only reliable method to do that. GET would also be possible but clients and servers allow just a limited URL length (something like 2048 characters).

提交回复
热议问题