What is the difference between GET and POST?

It would be great help if someone could clarify the difference between HTTP GET AND HTTP POST.
I am confused because as per w3(https://www.w3schools.com/tags/ref_httpmethods.asp) GET is used to request data from a specified resource. , but while submitting form we are sending data (submitting) instead of getting.
So why aren’t we using POST instead of GET??

Hello Akansha!

In HTML both GET and POST methods are used to send data to the server, the difference between GET and POST is that GET sends the data by adding it to the URL whereas POST sends the data in an encrypted message which makes it a secure way to send data.

Hope it helps.

1 Like

Not encrypted, but not exposed to easy capture the way a query string in an URL would be.