Solved

difference between get & post in Html?

Posted on 2004-08-05
6
840 Views
Last Modified: 2008-02-01
difference between get & post in Html?
0
Comment
Question by:she1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 21

Expert Comment

by:pinaldave
ID: 11731446
0
 
LVL 6

Accepted Solution

by:
viola123 earned 20 total points
ID: 11731841
i am trying to tell you the difference in 2 minutes.

using get method, you can see the query string appended directly behind your URL in the address field of browsers.

however, post method won't display your query string in the address field. Thus, it looks more secure.

the reason of this difference is the http request format:

in the http request of post method, query string is the last line. but in get method, query string is just behind the URL. it is in the first line


regards
viola123
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 11731911
Good link Pinal - covers the issue very well :-)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 21

Expert Comment

by:pinaldave
ID: 11732103
Thank you Sean :-) Many times I have troubles and I go to search EE I solve my problems with your answers in EE :-))
Regards,
---Pinal
0
 
LVL 4

Expert Comment

by:hamood
ID: 11735540
One more thing that when you are using get method then you can post limited data because we can not send huge amount of data using query string. If that is the case then we have to use post method.

One more thing get is not secure method it exposes your data to viewer. People can view the data in the URL. One can use post method to hide the data in URL.

Hamood
0
 

Author Comment

by:she1
ID: 11740045
thanks lot    for   all your help!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question