Forum Moderators: coopster

Message Too Old, No Replies

is there any command that allow the user to print to printer?

         

fukchai2000

9:48 am on Apr 13, 2005 (gmt 0)

10+ Year Member



Hi,

I just wanna ask....is there any specific command in PHP that will allow the user to print the web page when the user click on the button?(beside go to File->Print)

Thank You.

Birdman

11:36 am on Apr 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is a javaScript command, but no PHP as far as I know.

JavaScript:

<a href="javascript: window.print()">print page</a>

IamStang

11:46 am on Apr 13, 2005 (gmt 0)

10+ Year Member



Or to use a button

<input type="button" value="Print This Page" onClick="window.print()">

but there is nothing in the "php manual" for a print command such as you need.