How to print a web page using php?
Moderator: General Moderators
-
shellom2005
- Forum Newbie
- Posts: 1
- Joined: Fri Jan 02, 2009 12:48 pm
How to print a web page using php?
hi ,how to print a web page using php.I'm new and i have very little php knowlege.please help!
Re: How to print a web page using php?
If I catch your question correctly, I don't think you even need PHP.
That triggers a print dialogue.
If you want, you can have PHP generate a new page, though, with more printer-friendly CSS, or simply write a CSS file that is specified for print media.
Code: Select all
<input class="NavButton" id="btnPrint" type="button" value="Print Me!" onclick="window.print();">If you want, you can have PHP generate a new page, though, with more printer-friendly CSS, or simply write a CSS file that is specified for print media.