printing a page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wot
Forum Newbie
Posts: 3
Joined: Fri Aug 06, 2004 9:03 am

printing a page

Post by wot »

Hi there,

I am building a page in basic php using simple includ functions. I would also like that the visitors are able to print content of individual page (only the "main" content)

Would anybody be able to help me with the code? Thanks!

please have a loook at the mock up:

http://www21.brinkster.com/lusatia/print.htm

P.S.

Is opening of a separate window neccesery?

Is the use of any type of date bank for this needed?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

It can be done in Javascript :
window.print();
Post Reply