Wrox Programmer Forums
|
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 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 June 17th, 2004, 08:16 AM
Authorized User
 
Join Date: Oct 2003
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

Durwood

 
Old June 17th, 2004, 08:28 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old June 17th, 2004, 10:32 AM
Authorized User
 
Join Date: Oct 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Durwood

 
Old June 18th, 2004, 12:09 AM
Authorized User
 
Join Date: Feb 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knight
Default

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







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





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