title: $.ajax( type: "POST" POST method to php
body: <p>I'm trying to use the POST method in jQuery to make a data request. So this is the code in the html page:</p>
  
  <pre><code>&lt;form&gt;
  Title : &lt;input type="text" size="40" name="title"/&gt;
  &lt;input type="button" onclick="headingSearch(this.form)" value="Submit"/&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;/form&gt;
  &lt;script type="text/javascript"&gt;
  function headingSearch(f)
  {
      var title=f.title.value;
      $.ajax({
        type: "POST",
        url: "edit.php",
        data: {title:title} ,
        success: function(data) {
          $('.center').html(data); 
        }
      });
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>And this is the php code on the server :</p>
  
  <pre><code>&lt;?php
  
  $title = $_POST['title'];
  if($title != "")
  {
      echo $title;
  }
  
  ?&gt;
  </code></pre>
  
  <p>The POST request is not made at all and I have no idea why. The files are in the same folder in the wamp www folder so at least the url isn't wrong.</p>