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 <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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.