Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the difference between get and post in php

Shulou Source: shulou.com Published: 2022-05-31 10:59:47 10月03日 Update

This article mainly explains "what is the difference between get and post in php". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "what's the difference between get and post in php?"

Different instructions

1. GET generates one TCP packet and POST generates two TCP packets.

2. GET requests can only be encoded with url, while POST supports multiple encoding methods.

3. When the browser returns, GET is harmless.

POST will submit the request again.

Unless set manually, the GET request will be actively cache 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 +"\ n status: "+ status);});}) At this point, I believe you have a deeper understanding of "what is the difference between get and post in php?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Different data learning content browser coding browsing generating practical deeper active two interest again multiple learning net example practical practical manual Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info NVidia Redmi Apple MariaDB