Search code examples
phpprintdialog

Is there a way to know when user click ok button on print dialog initiated by self.print using PHP?


I need help on something.

Is there a way to know when user click ok button on print dialog box initiated by self.print using PHP? If yes, how? Thanks! If no, thank you for the answer.


Solution

  • This isn't something that would likely be able to be accomplished through PHP. PHP is a server language and the browser doesn't typically send anything to the server when it prints.

    You might be able to accomplish this with javascript or a browser plug-in but it would probably be hard to maintain and not work across all browsers.