Personal_Worker Posted October 12, 2006 Share Posted October 12, 2006 friends..is it possible i do the printing job in PHP?the user only need to press one button, and then it will print out whatever display in the monitor...thanks for the answer.... Link to comment Share on other sites More sharing options...
aleksanteri Posted October 12, 2006 Share Posted October 12, 2006 Well this is a JavaScript question but still here comes: <a href="java script:window.print();">Print this page</a> Well "java script" comes together, there seems to be a problem on these forums Link to comment Share on other sites More sharing options...
Personal_Worker Posted October 12, 2006 Author Share Posted October 12, 2006 Well this is a JavaScript question but still here comes:<a href="java script:window.print();">Print this page</a> Well "java script" comes together, there seems to be a problem on these forums sorry friend, cannot work...:)any other option??thanks Link to comment Share on other sites More sharing options...
aleksanteri Posted October 12, 2006 Share Posted October 12, 2006 hmmmmm, perhaps a button? <form method="get"><button onclick="window.print()">Print</button></form> Link to comment Share on other sites More sharing options...
Personal_Worker Posted October 12, 2006 Author Share Posted October 12, 2006 hmmmmm, perhaps a button?<form method="get"><button onclick="window.print()">Print</button></form> it's work!! it's work!!Thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted October 12, 2006 Share Posted October 12, 2006 And just so you know, this does work, but you have to remove the space between "java" and "script" so that it is one word:<a href="java script:window.print();">Print this page</a>This forum has a "security" feature that inserts a space there. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now