different instructions
1. GET generates one TCP data packet, and POST generates two TCP data packets.
2. GET requests can only be URL encoded, while POST supports multiple encoding methods.
3. When the browser returns, GET is harmless.
POST will submit the request again.
Unless set manually, GET requests will be actively cached by the browser.
Example
$("button").click(function(){ $.post("/try/ajax/demo_test_post.php", { name:"python learning network", url:"http://www.xiaohonghuaw.com" }, function(data,status){ alert("data: n" + data + "nstatus: " + status); }); });
The above is the difference between get and post in php. I hope it will be helpful to everyone.