title: Staying on page after submitting
body: <p>just a question --</p>
  
  <p>How do i actually submit a form and still stay on the same page whilst the script is being executed?</p>
  
  <p>I have a simple form that goes like this:</p>
  
  <pre><code>&lt;form action="process.php" method="post" id="form"&gt;
      &lt;label for="name"&gt;Name&lt;/label&gt;
      &lt;input type="text" name="name" id="name" required="required" /&gt;
      &lt;label for="email"&gt;Email&lt;/label&gt;
      &lt;input type="email" name="email" id="email" required="required" /&gt;
      &lt;label for="subject"&gt;Subject&lt;/label&gt;
      &lt;input type="text" name="subject" id="subject" required="required" /&gt;
      &lt;label for="message"&gt;Message&lt;/label&gt;
      &lt;input type="text" name="message" id="message" required="required" /&gt;
      &lt;input type="submit" id="button" value="Submit"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>But everytime i submit the form it just goes to process.php. I don't want that, i want it to stay on the same page, maybe even have a jquery popup saying "thank you" or something.</p>
  
  <p>How do i actually stay on the same page whilst the script is being run?</p>