title: jQuery AJAX POST Send Variable
body: <p>I have the following code:</p>
  
  <pre><code>  var result = confirm("You want to Subscribe to our Newsletter?");
    var emailAddress = $("#subscribeEmail").val();
  
    if (result == true) {
  
      $.ajax({
        type: 'POST',
        url: '/php/subscribeNewsletter.php',
        data: '{"email": "' + emailAddress + '"}',
        complete: function(r){
      alert(r.responseText);
      }
  
      });
  
  
    }
  </code></pre>
  
  <p>I believe the problem is to do with:
   data: '{"email": "' + emailAddress + '"}',</p>
  
  <p>I am receiving an empty $_POST array on the server side of things.</p>