Hello. Im trying to make å link wich opens active pages for printing. The link is located in the footer.php page (se below).
The problem is that in every page i have there is a include
sentance on the first line. This disables me to open the pages for printing because they are inside the php navigation system (se below).
So what im trying to do is to remove the first line in every
file (because the include sentance is on the first line) when i
click on the Print link.
Could anybody help me with this ?
Below are the two files in use :
index.php page (navigation system)
<?
if(isset($cat) and file_exists($cat)) {
$path = "";
include ("$path$cat");
}
else {
include ("mainpage.php");
}
?>
footer.php (bottom page for printing etc)
:
<?
print "<a class='cd' href='$cat' target='_blank'>Print</a>";
?>