Anyone know a way to Send a form to the printer and print it out?
Either with PHP or Javascript or any other way?
Thanks!😃
javascript window.print(), but it will still require user interaction by clicking ok on the print dialog box
<a href="#" onclick="window.print();">Click here to print</a>
Cool thanks.😃
an input button
<input type="button" onclick="window.print()">
or a graphic button
<a href="#" onclick="window.print();"><img src="button.gif" border="0"></a>
OK. sorry i didnt ask this earlier.. how would i do it with PHP code?
example:
<?php If ($btnPrint){ window.print(); } ?>
try this, not sure though
<?php If ($btnPrint){ ?> <script language="Javascript"> window.print(); </script> <? } ?>