Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a difference? Request("myform") Request.Form.. 2

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
Is there a difference in performace or other wise requesting a form these ways:

strFrmMyForm = Request("myform")
strFrmMyForm = Request.Form("myform")
www.vzio.com
ASP WEB DEVELOPMENT



 
Hi,

I would think that request.form("myform"), being more specific, would be more efficient.

Bye.
 
Yes I would agree with that. If you dont specify the collection then ASP will search through the collections in the following order:

QueryString
Form
Cookies
ClientCertificates
ServerVariables

If the collection is specified then clearly that collection is the only one checked. Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Hi snowboardr,

Request.Form("myform") retrieves value only from a form.
But, Request("myform") retrieves value either from a form or a query string(which ever is passed).
I do think I am true.



*********************
Sincerely, rdsmadhu.
*********************
 
I would agree that .form(" ") would be more efficient. the specification of the request leaves that to my belief. both of course have their place and the best use for the intence would be appropriate. I've always been a fan of processing the values with .form in a seperate file and try to stay away from the undecisive(if you will) request(" ")
admin@onpntwebdesigns.com
 
thanks to all who posted. www.vzio.com
ASP WEB DEVELOPMENT



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top