What are the differences between GET and POST methods in form submitting, give the case where we can use get and we can use post methods?

Posted on Updated on

On the server side, the main difference between GET and POST is where the submitted is stored. The $_GET array stores data submitted by the GET method. The $_POST array stores data submitted by the POST method.

On the browser side, the difference is that data submitted by the GET method will be displayed in the “browser’s address field”. Data submitted by the POST method will not be displayed anywhere on the browser.

GET method is mostly used for submitting a small amount and less sensitive data. POST method is mostly used for submitting a large amount or sensitive data.

In PHP there is basically two method GET and POST.
The difference between those method is that:
In GET method you can send the message to the server side but at the time of sending data you can see the record at the address bar.
While in POST method you can send the message to the server side but at the time of sending data you can not see the record at the address bar.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s