SSI for common navigation

I have a SSI that includes a cgi that prints out a common navigation bar to all pages.  I wanted to add a little graphic that will display what section the SSI is being called from, but how can I tell?  There is no ENV variable for the calling page... of course SCRIPT_NAME displays the name of the cgi and not the SHTML page that included it.  Any way for me to tell within this CGI which page is calling it?
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

powerlordConnect With a Mentor Commented:
How about $ENV{'REQUEST_URI '} ?
Hmm... what does $ENV{'HTTP_REFERER'} variable equal to?
georgiaAuthor Commented:
It is blank....  I assume it would refer to the page that I came from and not the one that called the script because it is blank when I just use the URL.
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I see at SCRIPT_FILENAME calling page and not CGI address. How do you execute CGI
with <!--#exec cgi=...--> or <!--#include virtual=...-->
Try to use include, it's better
This is a total workaround but what about passing the argument to the script.  Ex:

Then you just print out the variable $caller.

It's not the greatest but if your $ENV variables truly can't help...
georgiaAuthor Commented:
That got it!  Thanks!
All Courses

From novice to tech pro — start learning today.