Hi all,
I am writing a printer friendly version (pfv) script which does some parsing of a HTML file. Currently I choose that file by using the $HTTP_REFERER variable like below :
$read = fopen($HTTP_REFERER, "rb");
It all works fine but, I want to open the pfv in a new window rather than in the current window. For that I was using :
<a href="#" onClick="window.open('printer.php', '');
return false;">Printer Friendly Version</a>
Unfortunately that method does not work for the earlier code because there is n longer a http referer as such?
Does anybody know a work around for this?
Thanks in advance for your help.
Cheers,
Mayu