Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 23rd, 2007, 11:22 AM
Authorized User
 
Join Date: May 2007
Posts: 73
Thanks: 4
Thanked 0 Times in 0 Posts
Default GET & POST

hi
i m bit comfused about get n post actually it will be greate if somebody explain when to use get n when to use post. (how forms are attached with these two methods?).


Cheers
__________________
Cheers
Sheraz
 
Old May 23rd, 2007, 11:31 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The short answer is that using GET will append the values of your form to the query string automatically, by using POST the values of your form get placed into the header of the HTTP request.

Post is favored over Get because it allows one to send more data when a form is submitted (Get is limited to the maxium length of a request string) and, on top of that, GET will place ALL of your form values into the query string and this becomes a problem if you have data in, say, a hidden field that you require to make your application work properly. Users now have access to the values being passed around your pages!!

The only time I have every used GET is when I am working with external API's and am retrieving data from a ResponseStream, other then that I use POST.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old May 23rd, 2007, 11:44 AM
Authorized User
 
Join Date: May 2007
Posts: 73
Thanks: 4
Thanked 0 Times in 0 Posts
Default

thanks dude





Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimized method to post data & format into Excel shampabera Excel VBA 1 July 14th, 2005 09:23 AM
Javascript && keeps turnig into && ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
POST & GET not working on local VirtualHost Brian Campbell BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 October 27th, 2004 04:31 PM
sql & join tables & find a field in multiple table trangd Beginning PHP 2 January 29th, 2004 07:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.