Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 17th, 2004, 08:16 AM
Authorized User
Join Date: Oct 2003
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default request.qurystring vs. request.form

Could someone give a succinct explanation of the differences between request.querystring and request.form and the instances in which you shoud use/apply one over the other?

I am working on populating a secondary page with data collected from a user-input form and then using the new page to post the information to a DB.
Thanks for any intelligent answer to a stupidly constructed question


Reply With Quote
  #2 (permalink)  
Old June 17th, 2004, 08:28 AM
Friend of Wrox
Join Date: Jan 2004
Location: , , USA.
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts

Generally, you use Request.Querysting to retrieve URL querystring parameters when you have <Form method="GET">
and you use Request.Form() when you have <form method="Post">

Using "get" to pass information sends the information as a URL querystring parameters separated by & (ampersand) but there are some limitations, information you are sending is visible in browser address bar (you do not want to send password) and also there is a limit of number of characters you can pass through queystring.
You also have to encode some special characters while using "get"

Using "post" to pass information sends the information embedded in a
HTTP header.It's main advantage is that you can send larger amounts of information.
Reply With Quote
  #3 (permalink)  
Old June 17th, 2004, 10:32 AM
Authorized User
Join Date: Oct 2003
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts

That is what I needed to know. I was using the correct form, but didn't really understand why. LOL!


Reply With Quote
  #4 (permalink)  
Old June 18th, 2004, 12:09 AM
Authorized User
Join Date: Feb 2004
Location: Karachi, , Pakistan.
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knight

yes shachi is correct but i would like to add another isssue
regarding get and post as far as security is concern always use post
method because the get and querystring collection is not secured when
u want to built a secure page u should use post method

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
request forwarging & request redirection hafizmuhammadmushtaq Servlets 2 April 24th, 2008 12:42 AM
Request.Form / Request.QueryString Toran Classic ASP Databases 4 January 17th, 2007 02:23 PM
request.form() lucian Dreamweaver (all versions) 1 November 7th, 2004 09:14 AM
request.querystring() , request.form() alyeng2000 ASP.NET 1.0 and 1.1 Basics 1 December 30th, 2003 12:07 AM

All times are GMT -4. The time now is 11:52 PM.

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