Solved

difference between get & post in Html?

Posted on 2004-08-05
6
824 Views
Last Modified: 2008-02-01
difference between get & post in Html?
0
Comment
Question by:she1
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
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 …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now