I am using AJAX to send form data to a server php file that builds and sends an html email. A portion of this data I am echoing on the server php file. The html that is echoed builds a table that I would like the user to print (on paper). I’d like to open the default browser print dialog so the user can print the table that he/she cannot see. I don’t care if a new tab has to open displaying the echoed content. Is this even possible?
Share
return that html form ajax request and then use javascript to print
This code is not tested
JQuery/Javascript
PHP File (EmailFile.php)