how can i print a document without the header?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
triple
Forum Newbie
Posts: 3
Joined: Sat Jan 24, 2004 11:48 am

how can i print a document without the header?

Post by triple »

how can i print a document without the header


untitled document page
1 of 1


and the foother

url path ( http://localhost/websitename) date
22/01/2004



thx alot?
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Code: Select all

require_once 'header.php'; //comment out for no header
require_once 'thecontent.php';
require_once 'footer.php';
You mean along these lines?
triple
Forum Newbie
Posts: 3
Joined: Sat Jan 24, 2004 11:48 am

Post by triple »

i dont understand what u mean, i just want to print a page on the printer
without the header or the foother on the page
can someone give an example
thx
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

You have to do this in the browser when you go to print. It cannot be controlled using PHP.

Mac
User avatar
Etherguy
Forum Commoner
Posts: 70
Joined: Fri Nov 01, 2002 9:09 pm
Location: Long Island, New York

Post by Etherguy »

....or you could always convert the output into a PDF :lol:
triple
Forum Newbie
Posts: 3
Joined: Sat Jan 24, 2004 11:48 am

Post by triple »

twigletmac=>> thx did nt know there was such an option(easy and clean)
you have to do this in internet explorer, page setup.


also thx to all the others
Greetings triple
Post Reply