Page 1 of 1

how can i print a document without the header?

Posted: Sat Jan 24, 2004 11:48 am
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?

Posted: Sat Jan 24, 2004 12:25 pm
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?

Posted: Sun Jan 25, 2004 5:52 am
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

Posted: Mon Jan 26, 2004 5:01 am
by twigletmac
You have to do this in the browser when you go to print. It cannot be controlled using PHP.

Mac

Posted: Mon Jan 26, 2004 7:32 am
by Etherguy
....or you could always convert the output into a PDF :lol:

Posted: Mon Jan 26, 2004 10:55 am
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