Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about post and get method 1

Status
Not open for further replies.

chenshch

Technical User
Jun 9, 2004
8
CN
hello
i am a beginner of web programming
and i got confused about post and get method,
though i have refer to books. and i dont quite understand
the attribute action in form element too.
who can give me some help
thanks
 
well .. kind of involved to explain all of it, but here's the basics :

get, submits the form through the url, when you've been to websites with long addresses like the one above : that's haded through the url, and is considered having a querystring, this is how form method=get acts, which is useful because then you can bind the output that this generates through search engines, bookmarks, whatever.

post, is more secure(ish) it posts the data directly to the receiving page, acts like querystring, but can handle much more input(s), keeps the data out of the address bar, so it locks out the ability to bookmark, store/reference so search engines/spiders cant "re-create" the output as easily.

querystring / get is typically used mostly for navigation, and handling.

post is typically used for data submission ( like user info forms etc ) where there mightbe more data than is allowable (256 chars ) in the address line, or where the data is not intended to be reproduced at a whim.

hope that helps..


[thumbsup2]DreX
aKa - Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top