title: Ajax posting NAN value
body: <p>I'm posting a variable via ajax however when I use it in PHP, I get NAN why is that? it's supposed to be a number</p>
  
  <p>//in js</p>
  
  <pre><code>var variableToSend = 1;
  $.post('ajax.php', {variable: variableToSend});
  </code></pre>
  
  <p>//in php</p>
  
  <pre><code>&lt;?php echo $_POST['variable']?&gt;;
  </code></pre>