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?
georgiaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
powerlordConnect With a Mentor Commented:
How about $ENV{'REQUEST_URI '} ?
0
 
sanekCommented:
Hmm... what does $ENV{'HTTP_REFERER'} variable equal to?
0
 
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.
0
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.

 
sanekCommented:
Wierd...
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
0
 
guadalupeCommented:
This is a total workaround but what about passing the argument to the script.  Ex:

script.pl?caller=callinmg_page.htm

Then you just print out the variable $caller.

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

From novice to tech pro — start learning today.