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!

Retrieve URL of current page 1

Status
Not open for further replies.

CherylD

Programmer
May 1, 2001
107
CA
Does anyone know how to retrieve the URL of the current page?

I've got an .shtml file which includes a perl script. Within that perl script I want to dynamically determine what text to show. To do this I would need to know the URL that I am on and based on what is in that URL would decide for me what text to display.

How do I retrieve the URL of the page I am on?
 
[tt]$ENV{'REQUEST_URI'}[/tt] should be what you need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top