mrweaver Posted October 11, 2007 Share Posted October 11, 2007 Hi. I wrote an HTML form and PHP script to email the form data to some people in my office. After submitting the form, I would echo the content of the form--at the bottom of this page is a button to print the form data. I used MIME mail for the email, but not PEAR. However, when printing both from the page, and from the email message (using the email program's print function) only one page's worth of text prints, so long forms get cut. If I print from the form input page (before submission/emailing), the whole thing prints, but only the visible text in the text boxes. Here is the code for the email operation: $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: STAFF <STAFF@someorganization.org>' . "\r\n"; if (!$error_msg) { echo $echo_body; mail ($destination_email, $email_subject, $email_body, $headers); } else { echo $error_msg; } How do I get everything to print? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.