GET uses the query string to pass the form values from the form to the 
receiving page. This has a couple of implications, one being that the values 
(even hidden form element values) are visible in the querystring. Another is 
that the querystring has a length limit which appears to vary dependent on 
which browser is being used - code for a maximum length of 2048 characters 
(including URL and field seperators etc). And the other implication I can think 
about is that it's very easy for the user to play around with the values just 
by changing them in the querystring.

POST users the HTTP headers to pass the form values from the form to the 
receiving page. The HTTP headers aren't generally visible to the user, and it's 
much harder to for the user to change values if they want to fiddle. As far as 
I know there is no hard-coded limit on the amount of data you can send, but 
obviously if you've got a form with a huge amount of data on it, it's best to 
break it down into chunks from a useability point of view. Also the 
configuration of your webserver may affect what amount of data you can send.

I personally use POST the majority of the time. I only use GET if I want to be 
able to send data to the receiving page in the query string (i.e. through a 
redirect or JS win.open() etc) without necessarily using a form.

Dan

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf 
Of Sreejith N
Sent: 23 August 2005 05:14
To: [email protected]
Subject: [ASP] difference between "GET" method and "POST" method

Hi all,
 
Can anyone clearly tell watz the difference between "GET" and "POST" method in 
Form tag. 
 
I m working with a web application where most of the pages are dealing with 
writing/reading values from database. 
 
which method is best to use in form tag for such situation.
 
Thanks in advance

                
---------------------------------
Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots 
more. 
http://in.promos.yahoo.com/rakhi/index.html

[Non-text portions of this message have been removed]





------------------------ Yahoo! Groups Sponsor --------------------~--> <font 
face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hd75brs/M=362131.6882499.7825260.1510227/D=groups/S=1705115381:TM/Y=YAHOO/EXP=1124788023/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font> 
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h6so5gr/M=362131.6882499.7825260.1510227/D=groups/S=1705115381:TM/Y=YAHOO/EXP=1124792813/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to