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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using URL in vbscript variable

Status
Not open for further replies.

hudradgs

Programmer
Jun 6, 2001
4
GB
I have a page written in vbscript which has a lot of variables tagged on the end of the URL. I need to go to a second page where some hidden variables are set and then return to the previous page. Really, I need to capture the current address into a variable and pass that to the next screen.

Is there any way of doing this?
 
By current address if you mean current page, you can do it using
Server.RequestVariables("SCRIPT_NAME")

That will return the value of the current script.

Also - on the calling page you might want to consider using
Server.RequestVariables("HTTP_REFERER")

If memory serves me right, that will return a string containing the value of the refering page.

See

for a full listing of server variables

good luck
leo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top