I have a question about printing a window in PHP. I had posted before and it was working, but something happened and its not working now. Here is the line of code that I have. can someone tell me whats wrong with this. To set this up, I have a page that has a form, the user fills out the form and clicks a button to "print" the form. I have it redirecting to a new page that just displays the form data and at the end of the code, it sends an email to me telling me who filled out the form. then it is supposed to do the window.print() and open the print dialog box, but that doesnt happen. Any help here would be greatly appreiated
echo "<script language='javascript'>window.print();</script>";
Joe