Hi guys
I would like to automaticly print a page but i ythink its not possible with PHP. I think I'm going to use a macro. Could you tell me which software tu use and were to download it?? Of course it there is an other solution don't hesitate to advice me.
Thank you
print a page
Moderator: General Moderators
print a page
The problem is that i'm doing an web page for users who want to see a print button on the web page. I hope you can help me
Actually, it's pretty easy using javascript. Just create a button or link with an onclick event of window.print(). This will bring up the print dialog box.
Like this:
<input type="button" value="print" onclick="window.print();" />
You could also add window.print() to <body onload=""> and the print dialog will appear as soon as a page loads. This is very handy for forms/reports and stuff.
Of course, this has nothing to do with PHP.
Like this:
<input type="button" value="print" onclick="window.print();" />
You could also add window.print() to <body onload=""> and the print dialog will appear as soon as a page loads. This is very handy for forms/reports and stuff.
Of course, this has nothing to do with PHP.