title: Stay on page after submit form
body: <p>The goal is that once a the submit button is clicked, instead of going to send.php, it will just keep the page, I don't even want the page reloaded. If you guys have another way of doing this, that would be perfectly fine too.</p>
  
  <p>My Ajax code</p>
  
  <pre><code>$("#sendtxt").click(function(e) {
          e.preventDefault();
          var phonenum = $("#phonenum").val();
          var provider = $("#provider").val();
          var message = $("#message").val();
          $.ajax({
              type : 'POST',
              data : dataString,
              url : 'send.php',
              success : function(data) {
                  alert(data);
              }
          });
      });
  </code></pre>
  
  <p>My Form code</p>
  
  <pre><code>    &lt;form name="reqform" action="" method="post"&gt;
          &lt;h1&gt;Phone Number:
          &lt;input name="phonenum" id="phonenum" type="text" class="txtbox-style" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" required/&gt;
          &lt;select name = "provider" id ="provider" class="txtbox-style" required&gt;
              &lt;option value="@sms.mycricket.com"&gt;Cricket Wireless&lt;/option&gt;
          &lt;/select&gt;
          &lt;br/&gt;
          Message:
          &lt;input name="message" id="message" type="text" class="txtbox-style"/&gt;
          &lt;br/&gt;
          How many times?
          &lt;input name="amount" id="amount" type="number" min="1" max="20" class="txtbox-style" required/&gt;
          &lt;br /&gt;
          &lt;input type="submit" id="sendtxt" name="sendtxt" class="btn-style" value="Start Sending" /&gt;
          &lt;/h1&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>My send.php</p>
  
  <pre><code>&lt;?php
   $to = $_POST["phonenum"];
   $provider = $_POST["provider"];
   $subject = 'Hi';
   $message = $_POST["message"];
   $headers = 'From: Hello' . phpversion();
  
   mail($to . $provider, $subject, $message, $headers);
  ?&gt;
  </code></pre>