Ask a Question related to ASP, Design and Development.
-
michaaal #1
What is the difference between REQUEST and REQUEST.QUERYSTRING?
What is the difference between these two statements? They seem to do the
same thing...
response.write(request("variable"))
response.write(request.querystring("variable"))
michaaal Guest
-
request.querystring questions
hi I have created a querystring based on title of books such as A B C D E and so on. For example, http://localhost/mysite/byTitle.aspx?Title=A. ... -
request querystring
Using the querystring collection in ASP, I'm declaring variables and setting each variable equal to querystring values: <% Dim x Dim y Dim z x =... -
Cannot do simple Request.QueryString on IIS 6.0
I've encountered many problems upgrading my Win2K Server to Windows 2003 Server, not the least of which involve IIS 6.0 and ASP (classic) support. ... -
Confused about a REQUEST.FORM and a REQUEST.QUERYSTRING
This is snipit of code, supplied by PayPal with explanation about what has to be done to access their back end. I am confused because they first... -
difference bet. request.querystring and Request.Params
request.params for asp.net is the httprequest object, and this method gets a combined collection of querystring, cookies, form and servervars... -
Ray at #2
Re: What is the difference between REQUEST and REQUEST.QUERYSTRING?
Try this:
<form method="post" action="somepage.asp?x=6">
<input name="x" type="text" value="0">
<input type="submit">
</form>
On somepage.asp put:
response.write request("x")
What do you get? 6 or 9?
The request collection contains the querystring and form collections.
Always specify what you mean, either request.form or request.querystring.
Don't use just request by itself. It'll come back to bite you - especially
when you go to .net. :] Always qualify everything.
Ray at home
"michaaal" <res0gyio@verizon.net> wrote in message
news:OQMfuhnSDHA.1072@TK2MSFTNGP10.phx.gbl...> What is the difference between these two statements? They seem to do the
> same thing...
>
> response.write(request("variable"))
>
> response.write(request.querystring("variable"))
>
>
>
>
Ray at Guest
-
michaaal #3
Re: What is the difference between REQUEST and REQUEST.QUERYSTRING?
Perfect answer, Ray. Extremely informative and also very practical. Thank
you!
"Ray at <%=sLocation%>" <ray@ajf8jalskdfna.sefrhja7yasdf.com> wrote in
message news:OV2AWlnSDHA.1948@TK2MSFTNGP12.phx.gbl...especially> Try this:
>
> <form method="post" action="somepage.asp?x=6">
> <input name="x" type="text" value="0">
> <input type="submit">
> </form>
>
> On somepage.asp put:
>
> response.write request("x")
>
> What do you get? 6 or 9?
>
>
> The request collection contains the querystring and form collections.
> Always specify what you mean, either request.form or request.querystring.
> Don't use just request by itself. It'll come back to bite you -the> when you go to .net. :] Always qualify everything.
>
> Ray at home
>
>
> "michaaal" <res0gyio@verizon.net> wrote in message
> news:OQMfuhnSDHA.1072@TK2MSFTNGP10.phx.gbl...> > What is the difference between these two statements? They seem to do>> > same thing...
> >
> > response.write(request("variable"))
> >
> > response.write(request.querystring("variable"))
> >
> >
> >
> >
>
michaaal Guest
-
Aaron Bertrand [MVP] #4
Re: What is the difference between REQUEST and REQUEST.QUERYSTRING?
In addition to Ray's explanation: [url]http://www.aspfaq.com/2111[/url]
"michaaal" <res0gyio@verizon.net> wrote in message
news:OQMfuhnSDHA.1072@TK2MSFTNGP10.phx.gbl...> What is the difference between these two statements? They seem to do the
> same thing...
>
> response.write(request("variable"))
>
> response.write(request.querystring("variable"))
>
>
>
>
Aaron Bertrand [MVP] Guest
-
Evertjan. #5
Re: What is the difference between REQUEST and REQUEST.QUERYSTRING?
Ray at <%=sLocation%> wrote on 15 jul 2003 in
microsoft.public.inetserver.asp.general:
Real magic, I always seem to get 9 !> <form method="post" action="somepage.asp?x=6">
> <input name="x" type="text" value="0">
> <input type="submit">
> </form>
>
> On somepage.asp put:
>
> response.write request("x")
>
> What do you get? 6 or 9?
Where does this 9 come from? is it 6*1.5 ?
;--}
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest
-
Evertjan. #6
Re: What is the difference between REQUEST and REQUEST.QUERYSTRING?
Ray at <%=sLocation%> wrote on 15 jul 2003 in
microsoft.public.inetserver.asp.general:That is why my regionalisation to Hieroglyphic LCID=96669 did invert> No, you see, if you don't specify, it takes the querystring value and
> returns it inverted. So, if you had a querystring of L, you'd get 7 as a
> result, and if your querystring is a W, you'd get an M, and so on.
Horeb's eye "H" in the query stylus, while displaying the pictogram "N" for
water correctly.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest
-
Michael D. Kersey #7
Re: What is the difference between REQUEST and REQUEST.QUERYSTRING?
Aaron Bertrand - MVP wrote:
Yes, much better!8^)> Or, be sure to explicitly call the collection you are using. :-)> > So be sure that names don't conflict.
Michael D. Kersey Guest
-
Unregistered #8
What is the difference between REQUEST and REQUEST.QUERYSTRING?
microsoft.public.inetserver.asp.general:
Real magic, I always seem to get 9 !
Where does this 9 come from? is it 6*1.5 ?
Hi,
from where this 1.5 come ?Unregistered Guest



Reply With Quote

