title: 404 error in ajax call, wordpress
body: <p>I'm using ajax to collect data from enquiry form, then data is send to another page, and this page supposed to send this data to my email.<br>
  The problem is when I click send button, I'm getting 404 error in firebug console.<br>
  In template (with ajax code) I use this call:</p>
  
  <pre><code>$.ajax({
          type: "POST",
          url: "&lt;?php echo get_permalink(11); ?&gt;",
          data: {
                  name: $('.enquiryName').val(),
                  email: $('.enquiryEmail').val(),
                  comments: $('.enquiryComments').val()
          }
  }).done(function(msg) {
      if (msg=='1') {
          alert('&lt;strong&gt;Your enquiry has been sent successfully.&lt;/strong&gt;');
          $('.enquiryName').val('');
          $('.enquiryEmail').val('');
          $('.enquiryComments').val('');
      } else {
          $('.errorBox').html(msg);
      }
  });
  </code></pre>
  
  <p>Target page is just another page created in wordpress, with very basic template. When I put to browser url bar this page address and press enter I get message <strong>Nothing to send.</strong>, which is correct.</p>
  
  <p>What might be wrong? In ajax I get 404 error, in browser it's fine.</p>