Home » Difference Between » GET and POST Method

What is the Difference between GET and POST Method in PHP?

GET V/S POST

GET and POST are two HTTP methods used by Web Browser to Communicate with Server. This post will help you in clearing the difference between the GET and POST methods in PHP.
GETPOST
The Get method in PHP language is used to transfer data through URLThe POST method in PHP language is used to transfer data through Forums
Get Method is not as much secured as the POST methodPOST Method is More secured then GET Method
The Information in GET Method is transferred through the URL and hence this information is visible to allThe information in POST Method is transferred through the forums and hence this information is not visible to all
The GET Method is used to transfer Limited amount of information through URL (Maximum 2048 Characters can be transferred through URL)Using the POST method we can transfer any amount of information that we want

More Information about GET and POST Method in PHP Language

This section will help you in understanding the difference between GET and POST Method in better way

GET Method: The Get method sends the data through URL that are mostly String & Value pair separated by using the & sign.

Example of GET Method: http://www.whatis.com?name=whatis&age=23

Here name and age is the GET parameters which are concatenated through the ampersand sign

POST Method: The POST method in PHP is used to transfer data through the forums. The data that has been sent through the POST method is not visible to anyone.

Conclusion:

Here in this Difference Between Section, I have explained the difference between GET and POST methods in PHP Language. Hope this article will help you in understanding the same. In case if you have any doubt regarding the same, Please start the discussion by commenting below, I would like to assist you.