Forum Moderators: coopster

Message Too Old, No Replies

Is it possible to to print a webpage without the header and footer

         

jezzer300

1:10 am on Nov 24, 2004 (gmt 0)

10+ Year Member



Hi,

When I receive an order I display the invoice (using PHP from the remote hosted server) and print them using IE.

Is there a away to remove the default header and footer?

Why? I don't want my customers to see the path to my invoicing script in the footer. It looks unprofessional.

I can't use the printer functions as I'm running off a lynix server, hosted for me.

Thanks,

Jez.

Nutter

1:56 am on Nov 24, 2004 (gmt 0)

10+ Year Member



Are you printing the invoices, or is your client? If it's you, then it's just a setting in the browser.

If your client is printing it then you have no control over the header and footer. You could mod_rewrite the URL to something more "professional", but other than that...

jezzer300

9:22 am on Nov 24, 2004 (gmt 0)

10+ Year Member



mod_rewrite, that's a good idea. I may give that a go, but for now I'll adjust my browser's settings.

Thanks.

mrnoisy

11:35 pm on Nov 25, 2004 (gmt 0)

10+ Year Member



Could you use css?

html:


<div id="header">Header content</div>
<div id="main">Main content</div>
<div id="footer">footer content</div>

css:


@media print {
#header, #footer {
display:none
}
}

jezzer300

8:44 am on Nov 26, 2004 (gmt 0)

10+ Year Member



thanks

I'll give that a go!