title: User Input from HTML form being cut off
body: <p>We have an HTML form that takes in user input for an application, and uses PHP to process and send it to HR. The issue is it cutting off the text in the final result (picture below). There are no text limits set anywhere. Any help or ideas would be greatly appreciated.</p>
  <p>Parts being cut off:
  <a href="https://i.stack.imgur.com/WLhbU.png" rel="nofollow noreferrer">Cut Off</a></p>
  <p>The form declaration and code for the fields being cut off:</p>
  <pre><code>&lt;form id=&quot;application&quot; name=&quot;application&quot; method=&quot;post&quot; action=&quot;sendresults.php&quot; align=&quot;left&quot;&gt;
  
  &lt;p&gt;Work Performed&lt;br /&gt;
    &lt;label&gt;
      &lt;textarea name=&quot;workperform1&quot; id=&quot;workperform1&quot; tabindex=&quot;62&quot; cols=&quot;50&quot; rows=&quot;3&quot;&gt;&lt;/textarea&gt;
    &lt;/label&gt;
  &lt;/p&gt;
  &lt;p&gt;Reason for Leaving&lt;br /&gt;
      &lt;label&gt;
        &lt;input name=&quot;reasonleaving1&quot; type=&quot;text&quot; onkeypress=&quot;return noenter()&quot; id=&quot;reasonleaving1&quot; tabindex=&quot;63&quot;size=&quot;66&quot; /&gt;
      &lt;/label&gt;
        &lt;br /&gt;
  &lt;/p&gt;
  </code></pre>
  <p>The PHP code:</p>
  <pre><code>&lt;?php session_start(); 
  
  ?&gt;
  &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
  &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
      &lt;head&gt;
          &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
          &lt;title&gt;Results&lt;/title&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
  
          &lt;?php
              //--------------------------Set these paramaters--------------------------
  
              $subject = 'Application for Employment'; 
  
              $emailadd = 'blahblah@randomemail.org'; 
  
              // Where to redirect after form is processed. 
              $url = 'http://www.randomwebsitename/random.html'; 
  
              // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
              $req = '0'; 
  
              // --------------------------Do not edit below this line--------------------------
              $text = &quot;Results from form:\n\n&quot;; 
              $space = ' ';
              $line = '
              ';
              
              include_once $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php';
              $securimage = new Securimage();
              
              
              if ($securimage-&gt;check($_POST['captcha_code']) == false) {
                  die('The code you entered was incorrect.  Go back and try again.');
              }
              
              foreach( $_POST as $key =&gt; $value ){
              
                  if ($req == '1'){
                          if( $value == '' ){
                          echo &quot;$key is empty&quot;;
                          die;
                      }
                  }
                  $j = strlen($key);
                  if( $j &gt;= 20 ) {
                      echo &quot;Name of form element $key cannot be longer than 20 characters&quot;;
                      die;
                  }
                  $j = 20 - $j;
                  for ($i = 1; $i &lt;= $j; $i++){
                      $space .= ' ';
                  }
                  $value = str_replace('\n', &quot;$line&quot;, $value);
                  $conc = &quot;{$key}:$space{$value}$line&quot;;
                  $text .= $conc;
                  $space = ' ';
              }
              
              mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
              echo '&lt;META HTTP-EQUIV=Refresh CONTENT=&quot;0; URL='.$url.'&quot;&gt;';
          ?&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>