title: Why does my php contact form send blank responses?
body: <p>I'm trying to make a simple contact form. However, when the email comes through all the responses are blank.</p>
  <pre><code>&lt;?php
  $EmailFrom = &quot;hideemail&quot;;
  $EmailTo = &quot;hideemail&quot;;
  $Subject = &quot;GrueRadio - Form Submission&quot;;
  $Name = Trim(stripslashes($_POST['Name'])); 
  $Email = Trim(stripslashes($_POST['Email'])); 
  $Message = Trim(stripslashes($_POST['Message'])); 
  
  // validation
  $validationOK=true;
  if (!$validationOK) {
      print &quot;&lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;0;URL=error.htm\&quot;&gt;&quot;;
      exit;
  }
  
  // prepare email body text
  $Body = &quot;&quot;;
  $Body .= &quot;Name: &quot;;
  $Body .= $Name;
  $Body .= &quot;\n&quot;;
  $Body .= &quot;Email: &quot;;
  $Body .= $Email;
  $Body .= &quot;\n&quot;;
  $Body .= &quot;Message: &quot;;
  $Body .= $Message;
  $Body .= &quot;\n&quot;;
  
  $success = mail($EmailTo, $Subject, $Body, &quot;From: &lt;$EmailFrom&gt;&quot;);
  
  if ($success){
      print &quot;&lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;0;URL=thank-you-form.html\&quot;&gt;&quot;;
  }
  else{
      print &quot;&lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;0;URL=error.htm\&quot;&gt;&quot;;
  }
  ?&gt;
  </code></pre>
  <pre><code>&lt;form style=&quot;padding-top: 70px;&quot; method=&quot;post&quot; action=&quot;engine.php&quot;&gt;
      &lt;h1 style=&quot;color: #442154;text-align: center;&quot;&gt;&lt;strong&gt;Contact&lt;/strong&gt;&lt;/h1&gt;
      &lt;p class=&quot;faq-para&quot; style=&quot;padding-bottom: 20px;text-align: center;&quot;&gt;Need to contact the team about a DCMA, Song Request or another issue?&lt;br&gt;You can also contact us directly, dan@gruegamers.com.&lt;/p&gt;
      &lt;div class=&quot;form-group&quot;&gt;&lt;input class=&quot;form-control form-control-lg&quot; type=&quot;text&quot; style=&quot;width: 50%;margin-left: 25%;&quot; required=&quot;&quot; placeholder=&quot;Name&quot; name=&quot;name&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;form-group&quot;&gt;&lt;input class=&quot;form-control form-control-lg&quot; type=&quot;email&quot; style=&quot;width: 50%;margin-left: 25%;&quot; placeholder=&quot;Email&quot; name=&quot;email&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;form-group&quot;&gt;&lt;textarea class=&quot;form-control form-control-lg&quot; style=&quot;width: 50%;margin-left: 25%;min-height: 200px;&quot; placeholder=&quot;What are you contacting us about? Please specify with much information as possible.&quot; name=&quot;message&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
      &lt;div class=&quot;form-group&quot;&gt;&lt;button class=&quot;btn btn-dark btn-lg&quot; style=&quot;width: 50%;margin-left: 25%;&quot; type=&quot;submit&quot;&gt;Submit form&lt;/button&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  <p>Would appreciate any pointers to get this working. This is what I have tried so far.</p>
  <p>Thanks</p>