|
-
Mar 18th, 2002, 02:46 PM
#1
Thread Starter
Hyperactive Member
Request.ServerVariables??
Which item in the ServerVariables object should be used to get the URL, including the query string? I want to be able to pass the exact URL to another script so it can return to the same place.
However, the PATH_INFO, PATH_TRANSLATED, and URL items don't seem to have the query string included. Is there an item that only gets the querystring so I could attach it to one of the above?
-
Mar 18th, 2002, 02:58 PM
#2
Frenzied Member
-
Mar 18th, 2002, 03:09 PM
#3
Hyperactive Member
IF you go to the MSDN it will List All The ServerVariable Commands that you can use. It's one of my favorites in the MSDN Help.
-
Mar 18th, 2002, 04:23 PM
#4
Frenzied Member
Just Request.QueryString will pull the entire query string. What you probably need is ...
VB Code:
strURL = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME") & "?" & Request.QueryString
seoptimizer2001
VB 6.0, VC++, VI, ASP, JavaScript, HTML,
Perl, XML, SQL Server 2000
If God had intended us to drink beer, He would have given us stomachs.
Please use the [code] and [vbcode] tags in your posts!
If you don't know how to use them please go HERE!

-
Mar 18th, 2002, 07:59 PM
#5
Thread Starter
Hyperactive Member
Thanks, that worked good.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|