JavaScript and client side scripting.
Moderator: General Moderators
triple
Forum Newbie
Posts: 3 Joined: Sat Jan 24, 2004 11:48 am
Post
by triple » Sat Jan 24, 2004 11:48 am
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?
markl999
DevNet Resident
Posts: 1972 Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)
Post
by markl999 » Sat Jan 24, 2004 12:25 pm
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 » Sun Jan 25, 2004 5:52 am
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
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Mon Jan 26, 2004 5:01 am
You have to do this in the browser when you go to print. It cannot be controlled using PHP.
Mac
Etherguy
Forum Commoner
Posts: 70 Joined: Fri Nov 01, 2002 9:09 pm
Location: Long Island, New York
Post
by Etherguy » Mon Jan 26, 2004 7:32 am
....or you could always convert the output into a PDF
triple
Forum Newbie
Posts: 3 Joined: Sat Jan 24, 2004 11:48 am
Post
by triple » Mon Jan 26, 2004 10:55 am
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