Specials | Announcements | Contact | Site Map
Willmaster.com
Hijack-proof forms. Surveys. List building.

Solid, safe website tools.

Whatever your need, Will Bontrager builds powerful software solutions.

Affiliate Cookie Setter
Search WillMaster.com:

WillMaster > Support > CGI Q&A

If you don't find the answer to your question in these archives, ask your CGI question at the Current Master Series CGI Forum.

print friendly & dynamic php pages

Author Message
17Mar03

Walter
Subject: print friendly & dynamic php pages

Hello Will!
I've been looking for a while for a 'print friendly'-script and I found a good one on your site. I've installed it, and it works. But, I've to put the pfp-script in an footer (SSI). So I've to use "?doc=self", isn't it? One very very big problem: 'http_referer'! These days, almost every computer has the latest browsers and firewalls etc. So, the script won't work because of privacy/security reasons!! Is there a solution??????

17Mar03

Will

[Email]

In response to: print friendly & dynamic php pages

Yes, referrer information can no longer be relied upon. However, JavaScript can still know the current URL.

You might try something like this:

<script type="text/javascript" language="JavaScript"><!--
var thislink = '<a href="/cgi-bin/MasterPFP.cgi?doc=' +
document.URL +
'">';
document.writeln(thislink);
//--></script>
Click for Printer Friendly Page</a>