PHP code not connecting with html : <p>I'm having a very difficult time getting my PHP and HTML to work together on an email form. This is a website I've adopted and I'm not sure what I'm missing. I'm basically building a form within a modal so users have to register their email before downloading assets. So, once the form is sent they'll be able to connect to the next page to download what they needed. The trouble I'm having is with the form. Whatever I try isn't working. Help!</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;div class="modal-content"&gt;
      &lt;div class="modal-header"&gt;
        &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
        &lt;h4 class="modal-title"&gt;Download 3D Models&lt;/h4&gt;
      &lt;/div&gt;
      &lt;div class="modal-body"&gt;
       &lt;div class="container slate"&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-md-6"&gt;
        &lt;form name="send_form_email" action="../quform/send_form_email.php" method="get" enctype="multipart/form-data"&gt;
        &lt;div class="quform-elements"&gt;
         &lt;div class="form-group"&gt;
                &lt;label for="email"&gt;Name &lt;span class="text-danger"&gt;*&lt;/span&gt;&lt;/label&gt; 
                &lt;input id="name" type="text" name="name" class="form-control" placeholder="Name"&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                &lt;label for="company"&gt;Company / Firm &lt;span class="text-danger"&gt;*&lt;/span&gt;&lt;/label&gt;
                &lt;input id="company" type="text" name="email" class="form-control" placeholder="Company / Firm"&gt;
              &lt;/div&gt;
              &lt;div class="form-group"&gt;
                &lt;label for="email"&gt;Email&lt;span class="text-danger"&gt;*&lt;/span&gt;&lt;/label&gt;
                &lt;input id="email" type="text" name="email" class="form-control" placeholder="Email"&gt;
              &lt;/div&gt;
             &lt;div class="quform-element quform-element-recaptcha"&gt;
                &lt;div class="quform-spacer"&gt;
                  &lt;label&gt;Are you human?&lt;span class="text-danger"&gt;*&lt;/span&gt;&lt;/label&gt;
                  &lt;div class="quform-input" style="width: 250px;"&gt;
                    &lt;script src="https://www.google.com/recaptcha/api.js" async defer&gt;&lt;/script&gt;
                    &lt;div class="g-recaptcha" data-sitekey="6Le2WvkSAAAAAP9bLeD4OaiVYvDrHXhcKaFo1chy"&gt;&lt;/div&gt;
                    &lt;noscript&gt;
                      &lt;div style="width: 302px; height: 352px;"&gt;
                        &lt;div style="width: 302px; height: 352px; position: relative;"&gt;
                          &lt;div style="width: 302px; height: 352px; position: absolute;"&gt;
                            &lt;iframe src="https://www.google.com/recaptcha/api/fallback?k=6Le2WvkSAAAAAP9bLeD4OaiVYvDrHXhcKaFo1chy" frameborder="0" scrolling="no" style="width: 302px; height:352px; border-style: none;"&gt;
                            &lt;/iframe&gt;
                          &lt;/div&gt;
                          &lt;div style="width: 250px; height: 80px; position: absolute; border-style: none; bottom: 21px; left: 25px; margin: 0px; padding: 0px; right: 5px;"&gt;
                            &lt;textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 80px; border: 1px solid #c1c1c1; margin: 0px; padding: 0px; resize: none;"&gt;&lt;/textarea&gt;
                         &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/noscript&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;&lt;!--/.recaptcha --&gt;
              &lt;div class="form-group"&gt;
                &lt;button type="reset" class="btn btn-default"&gt;Cancel&lt;/button&gt;
                &lt;button type="submit" class="btn btn-primary" value="Send"&gt;Send&lt;/button&gt;
              &lt;/div&gt;
            &lt;/div&gt; &lt;!--/. quform-elements--&gt;
          &lt;/form&gt;      
        &lt;/div&gt; &lt;!--/.col-md-6--&gt;</code></pre>
</div>
</div>
</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
$name = $_POST['name']; //'name' has to be the same as the name value on the form input element
$company = $_POST['company'];
$email = $_POST['email'];
$human = $_POST['human'];
$from = $_POST['email'];
$to = 'xxx@gmail.com'; //set to the default email address
$subject = $_POST['3D Model Request'];
$body = "From: $name\n Company: $company/n E-Mail: $email\n";

$headers = "From: $email" . "\r\n" .
"Reply-To: $email" . "\r\n" .
"X-Mailer: PHP/" . phpversion();

if(isset($_POST['submit']) &amp;&amp; ($_POST['human']) == '4') {               
mail ($to, $subject, $body, $headers);  //mail sends it to the SMTP server side which sends the email
    echo "&lt;p&gt;Your message has been sent!&lt;/p&gt;";
} 

else { 
    echo "&lt;p&gt;Something went wrong, go back and try again!&lt;/p&gt;"; 
} 
if (!isset($_POST['submit']) &amp;&amp; ($_POST['human']) != '4') {
echo "&lt;p&gt;You answered the anti-spam question incorrectly!&lt;/p&gt;";
}
?&gt;</code></pre>
</div>
</div>
</p>
