I am using winContent = window.open, to open a printer friendly window, that only displays the main content and graphics from my webpages. I use this procedure so that I can size the page and give it a good location.
On some pages 20-30 articles can be displayed, I have been making an entry in the database:
<A HREF="javascript:printme('printer_friendly/print.php?id=1')">
So everytime I make up a new entry I have to know the article id and and change that in id=?.
In the webpage I have the following code..
<?php echo $row['print'];?> Printer Friendly Page</a>
which outputs to <A HREF="javascript:printme('printer_friendly/print.php?id=1')">
For a single page only, I use the code below,
<A HREF="javascript:printme('print.php?id=17')">Print Page </a>
which means that I have to change the "id" for every page,
when there are a 100 or more pages it is difficult to keep track of the "id's"
Is there anyway to make the article id carry over to print.php, using the <A HREF="javascript:printme('print.php?id=17')">Print Page </a>
so it does not matter if it is just a one page article, or 30 or more entries that are displayed individually on one page - and each article can be viewed and printed just by clicking the print me for that article.
Regards
Wayne