title: Can't get PHP modal contact form to submit email
body: <p>The modal form below gets stuck on submitting....     It also doesn't actually send the message to my email. I am relatively new to PHP, but I assume this problem pertains to my <code>sendmessage.php</code> file(below). For whatever reason, the tutorial states to not apply an action. What coud I be doing wrong? </p>
  
  <p>Just FYI, my header contains scripts to <code>jquery.fancybox.js?v=2.0.6</code> and <code>ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js</code></p>
  
  <p>sendmessage.php file:</p>
  
  <pre><code>&lt;?php
  $sendto   = "jjaylad@me.com";
  $usermail = $_POST['email'];
  $content  = nl2br($_POST['msg']);
  
  $subject  = "New Feedback Message";
  $headers  = "From: " . strip_tags($usermail) . "\r\n";
  $headers .= "Reply-To: ". strip_tags($usermail) . "\r\n";
  $headers .= "MIME-Version: 1.0\r\n";
  $headers .= "Content-Type: text/html;charset=utf-8 \r\n";
  
  $msg  = "&lt;html&gt;&lt;body style='font-family:Arial,sans-serif;'&gt;";
  $msg .= "&lt;h2 style='font-weight:bold;border-bottom:1px dotted #ccc;'&gt;New User Feedback&lt;/h2&gt;\r\n";
  $msg .= "&lt;p&gt;&lt;strong&gt;Sent by:&lt;/strong&gt; ".$usermail."&lt;/p&gt;\r\n";
  $msg .= "&lt;p&gt;&lt;strong&gt;Message:&lt;/strong&gt; ".$content."&lt;/p&gt;\r\n";
  $msg .= "&lt;/body&gt;&lt;/html&gt;";
  
  
  if(@mail($sendto, $subject, $msg, $headers)) {
      echo "true";
  } else {
      echo "false";
  }
  
  ?&gt;
  </code></pre>
  
  <p>Contact form code:</p>
  
  <pre><code>    &lt;form id="contact" name="contact" action="#" method="post"&gt;
      &lt;label for="email"&gt;Your E-mail Address:&lt;/label&gt;
      &lt;input type="email" id="email" name="email" class="txt"&gt;
      &lt;br&gt;
      &lt;label for="msg"&gt;Inquiry:&lt;/label&gt;
      &lt;textarea id="msg" name="msg" class="txtarea"&gt;&lt;/textarea&gt;
  
      &lt;button id="send"&gt;Send E-mail&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>