I need some help in creating a CGI to create a custom logfile.
The problem I have is trying to extract the URL of the page the visitor is currently on. Yes, I could use the CGI enviroment variable for this $ENV{REQUEST_URI} however the problem is that this CGI will be called from an include within the footer of a page. So if I use $ENV{REQUEST_URI} within the footer include it will return the footer filename each time of footer.jhtml. Instead I want to be able to actually extract the page URL the user is on.
What are some clever ways to achieve this.
Thank you so much for your help!
The problem I have is trying to extract the URL of the page the visitor is currently on. Yes, I could use the CGI enviroment variable for this $ENV{REQUEST_URI} however the problem is that this CGI will be called from an include within the footer of a page. So if I use $ENV{REQUEST_URI} within the footer include it will return the footer filename each time of footer.jhtml. Instead I want to be able to actually extract the page URL the user is on.
What are some clever ways to achieve this.
Thank you so much for your help!