title: HTML form not POSTing
body: <p>Im trying to post data and put it into a msql database but when i put do print_r($_POST); it shows the array as empty. I know its getting the value correctly however its not posting</p>
  
  <pre><code>  &lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  
  &lt;head&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
         &lt;script src="Scripts/menu.js"&gt;&lt;/script&gt;
         &lt;script src="Scripts/signup.js"&gt;&lt;/script&gt;
  
  &lt;link rel='stylesheet' href='CSS/index.css'&gt; 
  
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;img src="wc.png" id="wc"&gt;
  
  &lt;img src='restaurant.jpg' id="restaurant"&gt;
  &lt;img src='map.jpg' id="map"&gt;
  &lt;img src='mail.jpg' id="mail"&gt;
  &lt;img src='people.jpg' id="people"&gt;
  
  &lt;div id="window"&gt; &lt;div id="membersWindow"&gt; &lt;input type="text" id="signupUsername" value="name" placeholder="Username"&gt;
  
  &lt;form action="/signup.php" method="post"&gt;
  &lt;input type="password" id="signupPassword" placeholder="Password"&gt;
  
  &lt;input type="text" id="signupEmail" placeholder="Email"&gt; 
  
  &lt;input type="text" id="signupphoneNumber" placeholder="Phone Number"&gt;
  
  &lt;iframe src="useragreement.html" id="userAgreement"&gt; &lt;/iframe&gt;
  
  &lt;input type="submit"  id="signupSubmit"&gt;
  &lt;/div&gt; 
  
  &lt;/form&gt;
  
  &lt;div id="restaurantWindow"&gt; Restaurant Window &lt;/div&gt;
  
  &lt;!--- &lt;div id="mapWindow"&gt; &lt;iframe src="https://maps.google.com/?ie=UTF8&amp;amp;ll=29.817178,-95.401291&amp;amp;spn=0.689868,1.256561&amp;amp;t=h&amp;amp;z=10&amp;amp;output=embed"&gt;&lt;/iframe&gt;
   &lt;/div&gt; ---&gt;
  
  &lt;div id="mailWindow"&gt; Mail Window &lt;/div&gt;
  
  &lt;/div&gt;
  
  &lt;div id="banner"&gt; &lt;h1&gt; Wolfeboro Connection &lt;/h1&gt; &lt;/div&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Below is the php page that is getting the post however it shows array() as blank. There also isnt any errors reporting.</p>
  
  <pre><code>&lt;?php
  error_log(E_ALL);
  
  if( isset($_POST) ) echo "NO POST&lt;BR&gt;";
  print_r($_POST);
  
  
  
  include("connection.php");
  
  
  
  $stmt = $db-&gt;stmt_init();
  
  if($stmt-&gt;prepare("INSERT INTO users (BusinessName, Password, Phone, Email ) VALUES (?, ?, ?, ?)")) {
  
  $stmt-&gt;execute();
  $stmt-&gt;close();
  
  }
  
  
  
  ?&gt; 
  
  
  $(function()
  { 
  alert($("#signupUsername").val());
  
  $("#signupSubmit").click(function() {
  alert("posting "+$("#signupUsername").val());
  
  $.post( "../signup.php",
    { username: $("#signupUsername").val(),
      password: $("#signupPassword").val(),
      phonenumber: $("#signupphoneNumber").val(),    
      email: $("#signupEmail").val() 
    })
    .done( function(r)
    {
      alert("done");
    })
    .fail( funciton()
    {
      alert("fail");
    });
   });
  alert("loaded");
  
  });
  </code></pre>