Re: HTML/PHP page print

From: Date: Thu, 18 Mar 2004 16:53:57 +0000
Subject: Re: HTML/PHP page print
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180856@lists.php.net to get a copy of this message
Manisha Sathe wrote:
How can avoid other stuff on my web page ?
I assume you want to only print the information and not the page header, footer, navigation, etc. There are several ways to do this. The best way is with CSS. However, if you have not created your page primarily with CSS this won't work real well. The second step is to simply remove any headers or footers that you are including in your page when you want to print. In others words create a link on the page that says print that when clicked will not load any footers or headers. If you don't include any footers or headers, you could create a script that would remove <img> tags and some others in order to print only the relevant material.
Also when i print then title of document / page no / url / date also get displayed. How can i avoid it ?
This kind of information is usually from the OS, browser or printer driver. Therefore, it would be very hard if not impossible to turn off through server-side scripting or even with JavaScript. -- Jason Giangrande <jason@giangrande.org> http://www.giangrande.org http://www.dogsiview.com

« previous php.general (#180856) next »