On Thu, 13 Jun 2002, Angelo Marcos Rigo wrote:
>       Anybody knows a good printer friendly version php script
>       thank´s in advance 

Well, it's entirely dependent on your particular HTML; there's no 
general-purpose solution.

<?
  $P = ($_GET['printerfriendly'] == 'yes') ? 1 : 0;
?><html><body><?

if ($P)
{
  ?><img src="images/printerfriendly.gif"><?
}

else
{
  ?><img src="images/printerhostile.gif"><?
}

?></body></html>

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to