title: Why aren't my values from my text fields appearing in the email sent when submit is pressed?
body: <p>Love the site, this is my first question here.. I'm new to programming php..I have the following coding on my default page where the Form is:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Mill City Cannabis&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body bgcolor="#000000"&gt;
  &lt;table width="1000" border="0" cellspacing="0" cellpadding="0" align="center"&gt;
    &lt;tr&gt;
      &lt;td height="25"&gt;&amp;nbsp;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;
          &lt;center&gt;
            &lt;img src="Images/mccBanner.jpg" width="900" height="320" alt="Mill City Cannabis" /&gt;
          &lt;/center&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;
        &lt;table width="1000"&gt;
          &lt;tr&gt;
            &lt;td width="400"&gt;&amp;nbsp;&lt;/td&gt;
            &lt;td&gt;
              &lt;form action="thankyou.php" name="feedback"&gt;
              &lt;label&gt;
                &lt;font face="Tahoma" color="#00FF00" size="2"&gt;Name:&lt;/font&gt;
              &lt;/label&gt;&lt;br /&gt;
              &lt;input type="text" name="name" style="font-size:10px font:Tahoma border-color:#0F0" required="required" /&gt;&lt;br /&gt;
              &lt;label&gt;
                &lt;font face="Tahoma" color="#00FF00" size="2"&gt;Email:&lt;/font&gt;
              &lt;/label&gt;&lt;br /&gt;
              &lt;input type="email" name="email" required="required" /&gt;&lt;br /&gt;&lt;br /&gt;
              &lt;label&gt;
                &lt;font face="Tahoma" color="#00FF00" size="2"&gt;What would you like to see as content here @ Mill City Cannabis:&lt;/font&gt;&lt;br /&gt;
              &lt;/label&gt;
              &lt;textarea name="content" required="required"&gt;&lt;/textarea&gt;&lt;br /&gt;
              &lt;br /&gt;
              &lt;input type="submit" name="submit" id="submit" value="Submit" /&gt;
              &lt;input type="reset" name="reset" id="reset" value="Reset" /&gt;
              &lt;/form&gt;
            &lt;/td&gt;
            &lt;td width="400"&gt;&amp;nbsp;&lt;/td&gt;
          &lt;/tr&gt;
        &lt;/table&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and when it renders to the "thankyou.php" page this is what's inside my "thankyou.php" page:</p>
  
  <pre><code>&lt;?php
  
  ##############################
  #                            #
  # Coded By: Joshua Martinez  #
  # MrJoshuaMartinez@gmail.com #
  #                            #
  ##############################
  
  /* Subject and Email variables */
  
  $emailsubect = "Feedback";
  $webMaster = "millcitycannabis@gmail.com";
  
  /* Gathering Data Variables */
  
  $namefield = $_POST['name'];
  $emailfield = $_POST['email'];
  $contentfield = $_POST['content'];
  
  $body = &lt;&lt;&lt;EOD
  &lt;br&gt;&lt;hr&gt;&lt;br&gt;
  Name: $namefield &lt;br&gt;
  Email: $emailfield &lt;br&gt;
  Feedback: $contentfield &lt;br&gt;
  EOD;
  
  $headers = "From: $email\r\n";
  $headers .= "Content-type: text/html\r\n";
  $success = mail($webMaster, $emailsubect, $body, $headers);
  
  /* Results rendered as HTML */
  
  $theResults = &lt;&lt;&lt;EOD
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Mill City Cannabis&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body bgcolor="#000000"&gt;
  &lt;table width="1000" border="0" cellspacing="0" cellpadding="0" align="center"&gt;
    &lt;tr&gt;
      &lt;td height="25"&gt;&amp;nbsp;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;
      &lt;center&gt;
        &lt;img src="Images/mccBanner.jpg" width="900" height="320" alt="Mill City Cannabis" /&gt;
      &lt;/center&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td height="50"&gt;&amp;nbsp;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td align="center"&gt;
  &lt;font face="tahoma" size="2" color="#00FF00"&gt;
        Thank You For Your Feed Back!&lt;br /&gt;
        Please check back soon with us!
      &lt;/font&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
  &lt;td align="center"&gt;
        &lt;font face="tahoma" size="1" color="#00FF00"&gt;© All Rights Reserved&lt;/font&gt; 
        &lt;font face="tahoma" size="1" color="#FFFFFF"&gt;Mill City Cannabis &lt;/font&gt;
        &lt;font face="tahoma" size="1" color="#00ff00"&gt;2015&lt;/font&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  EOD;
  echo "$theResults";
  ?&gt;
  </code></pre>
  
  <p>and finally when the email is sent, all that appears is:</p>
  
  <p>Blank unknownk sender</p>
  
  <p>Name: (blank)<br />
  Email: (blank)<br />
  Feedback: (blank)<br /></p>