Jump to content

Problem printing long forms


mrweaver

Recommended Posts

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 <[email protected]>' . "\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

Link to comment
https://forums.phpfreaks.com/topic/72789-problem-printing-long-forms/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.