JavaScript and jQuery Variable Passing
<p>I'm trying to pass two variables into jQuery's "POST" function, but they don't seem to be getting to my PHP.</p>

<pre><code>&lt;script&gt;
var starting = 0;
var ending = 3;
$(document).ready(function(){               
           $.post("test.php", {start: starting, end: ending}, 
                   function(){});
  });
&lt;/script&gt;
</code></pre>

<p>It's my understanding that I should be able to access "starting" and "ending" by using $_POST["start"] and $_POST["end"], but it doesn't seem to be working. Am I passing these variables incorrectly? Here's the start of my PHP. The script works fine if I hard-code test values for the limit.</p>

<pre><code>$starting = intval($_POST["start"]);
$ending = intval($_POST["end"]);
$query = "SELECT formation_name FROM formations LIMIT '$starting','$ending'";
</code></pre>
