-2

I need to add some data to the SQL database on successful printing on click of print button

<button type="button" id="PrintButton" onClick="window.print()" class="btn btn-success">Print</button>
ScriptFolder
  • 57
  • 1
  • 1
  • 7
  • Note that successfully clicking the button doesn't tell you anything about whether the page actually successfully ended up on a piece of paper. You will never be able to know *that* for sure. – deceze May 18 '22 at 08:26
  • yes I know it cant say it has been successfully printed or not.. when click on the print button i need it to go to print as well as printed in the database. – ScriptFolder May 18 '22 at 10:50
  • So, what's your question exactly? – deceze May 18 '22 at 11:08

0 Answers0