Thread: Web app idea
View Single Post
Old May 12th, 2006, 11:11 PM   #8
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,107
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Lich
Try to use POST and not GET variables so you don't throw things in the URL
While I agree in general, in some cases, you might want the user-sibmitted data to be part of the URL, such as for search page results, as this allows the user to cut-and-paste the URL with ease, bookmark the page without the server needing to store a cookie, etc. I'm not saying this to start a debate, but rather to show the OP that there are cases where one method is more appropriate.

Obviously, with data that expires, or is sensitive, you want to use POST, as you suggest. POST is also necessary if the length of the extra data exceeds environment limits.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote