title: PHP form - on submit stay on same page
body: <p>I have a PHP form that is located on file <code>contact.html</code>.</p>
  
  <p>The form is processed from file <code>processForm.php</code>.</p>
  
  <p>When a user fills out the form and clicks on submit, 
  <code>processForm.php</code> sends the email and direct the user to - <code>processForm.php</code>
  with a message on that page "Success! Your message has been sent."</p>
  
  <p>I do not know much about PHP, but I know that the action that is calling for this is:</p>
  
  <pre><code>// Die with a success message
  die("&lt;span class='success'&gt;Success! Your message has been sent.&lt;/span&gt;");
  </code></pre>
  
  <p>How can I keep the message inside the form div without redirecting to the 
  <code>processForm.php</code> page?</p>
  
  <p>I can post the entire <code>processForm.php</code> if needed, but it is long.</p>