After some processing of other things these are redirects
print "Location: http://mydomain.com\n\n";
On the index page I am wanting to use javascript that uses document.referrer to know which of these scripts redirected the visitor to the index page but redirects from these scripts pass no referrer information.
Is there a way to have it pass the referrer information to the index.html page?
Is there another method I can use other than document.referrer so the javascript knows which script redirected the visitor?
print "Location: http: //mydomain.com/?$ENV{'SCRIPT_NAME'}\n\n";
Instead of being redirected to http: //mydomain.com, you get redirected to http: //mydomain.com/?code1.cgi which should still take you to the index page.