Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Request.Form / Request
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedRequest.Form / Request

 Post Reply Post Reply Page  123>
Author
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Direct Link To This Post Topic: Request.Form / Request
    Posted: 03 June 2003 at 4:26am

Ok, so both will do the same thing, but why not always just use Request on its own rather than specifying form or querystring ???

Back to Top
farrukh View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2002
Location: Pakistan
Status: Offline
Points: 147
Direct Link To This Post Posted: 03 June 2003 at 5:43am
they worked same but there is a difference when we are using querystring after submitting the forum user can see the details from the header for instance if we user login to this discussion forums through querystring then he can see the password from the header. the only thing is a drawback in querystring but one fine thing is that querystring is fast in process while using form. if you use some softwares to encrypt the header then u may always user querystring.

so just Request.Form or Replace.QueryString is not replace by only Request because the taste of users. If they want request.querystring to use they can and if they want form they can.. So its up to them.... so i think it cant be Request ONly..........
i have collected some nice avatars (37) and smileys (227) here you can download
http://www24.brinkster.com/webmastertool/download.html
Back to Top
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Direct Link To This Post Posted: 03 June 2003 at 6:29am

Hmmm, the question isn't regarding whether to use .Form or .Querystring, it's more to do with the Request itself.....

Why not just use Request on it's own as it will pick up the form's data no matter which Method you use (Get / Post) ???

BTW - One big advantage of using get/querystring is that users can bookmark the page as it contains the required querystring data. If the page needs to use data from post/form then it will not work with bookmarks.

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Direct Link To This Post Posted: 03 June 2003 at 7:33am

well it depends how big your form is... to if the "get" is best

also, i think its if you have to use the querystring AND the form

then it wont know which to get it from

Back to Top
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Direct Link To This Post Posted: 03 June 2003 at 7:43am

A form must use either POST or GET - there is no way that a form can submit with both methods.

So, maybe third time lucky (I will re-phrase the question).....

WHY NOT JUST USE REQUEST INSTEAD OF REQUEST.FORM OR REQUEST.QUERYSTRING ????

There must be some reason for this? Please, please, please - no second guessing. If you do not understand the question then do not reply.

Sorry to be so blunt.

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Direct Link To This Post Posted: 03 June 2003 at 8:38am

then why dont you just bloody use it instead of being a prick about it??

the "Request" method is a generic method to get information from either the QuesyString or the Form....

Some people like to be explicit about where the information is coming from and also wish to avoid the possibilty of having both ThisParm in the QueryString AND ThisParam as a posted form field.....

For instance.. version 6 of this forum when you make a new post has a URL like:
http://www.thissite.net/forum/post_message_form.asp?mode=new&ReturnPage=Thread&ForumID=8&TopicID=44933

But on the page generation it also creates a hidden form field called, yup, ForumID
<input type="hidden" name="ForumID" value="8">

Now on postback, if you used just "Request", it'll pull from the URL line first i believe and use that value..... (which is right there for someone to change, say i wanted to "hack" a thread into a protected forum, i could just changed the "8" to the ForumID of the forum i didnt have access to)....  so by explicitly using "Request.Form("ForumID")" the code is pulling from the "hidden" (read: not as easily changable) instead

Contribute to the working anarchy we fondly call the Internet
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Direct Link To This Post Posted: 03 June 2003 at 8:39am

i think its higher sercerity

becose if you have a page that you want to request from a FORM

then a user could just type in, in the address bar

"page.asp?username=bob"

and how would you know if to use the FORM or the QUERYSTRING

also like i said, you might want to use both!

Back to Top
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Direct Link To This Post Posted: 03 June 2003 at 9:16am

Morningz,

There is no need to be offensive like that !!!
I could be equally offensive in return, but choose not to do so as it gets us no where.

As a matter of fact, YOU, yes YOU MORNINGZ have missed a few crucial points which I have been advised of since my last post.......

1. Uniqueness
Without specifying what Request needs to search, it will look through not only QueryString and Form, but also Cookies, ClientCertificate and ServerVariables. If there are duplicate names in any of these, then the Request could potentially fail or return the wrong result

2 Performance
With the above in mind, if again you do not specify the 'holder', asp will need to go through each and every object until found.

So, after all, there was a good point to my post. My question was a valid one and I was right to repeat the question 2 or 3 times, although the answer came from elsewhere.

I could have just forgotten about this thread and got on with my work, but no, I thought that the answer was worth sharing with anyone that it may apply to.

 

Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.