Re: PHP and Print Headers

From: Date: Sun, 29 Oct 2000 21:36:08 +0000
Subject: Re: PHP and Print Headers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22571@lists.php.net to get a copy of this message
Do you mean physically printed from a printer (ink on paper) ? If so , the simplest way would be to modify your current header/footer inclusions as such : if (!$print == yes) { // if not in print mode then include 'header.inc'; // include the header } page if (!$print == yes) { include 'footer.inc'; } For "print mode" you would add this to link: <a href="somepage?print=yes">Print Mode</a> And header/footer will not show up in printed page. Philip -- be outside the box. On Sun, 29 Oct 2000, Kyle Mathews wrote: > Hello: > Is there a way to have PHP tell the browser not to print the header and > footer when the page is printed? > > > - Kyle > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#22571) next »