title: Trying to display two concatenated variables in email subject line using PHP
body: <p>I am trying to display two concatenated variables in a subject line through an mailer.php page, but the subject line in the email always comes in blank.  Below is the pertinent code.</p>
  
  <pre><code>/* Subject and To */
  
  $to = 'nnorman@dimplexthermal.com';
  $subject = $company . ' ' . $name;
  
  /* Gathering Data Variables */
  
  $name = $_POST['name'];
  $email = $_POST['email'];
  $company = $_POST['company'];
  
  $body = &lt;&lt;&lt;EOD
  &lt;br&gt;&lt;hr&gt;&lt;br&gt;
  Email: $email &lt;br&gt;
  Name: $name &lt;br&gt;
  Company: $company &lt;br&gt;
  
  EOD;
  
  $headers = "From: $email\r\n";
  $headers .= "Content-type: text/html\r\n";
  $success = mail($to, $subject, $body, $headers);
  </code></pre>