Why is this POST variable sent via AJAX Null? (jquery/php)
<p>This javascript is for a "load more" functionality. That grabs a fixed number of elements from load.php when a button #moreg is clicked.  </p>

<pre><code>$(function(){
    $("#moreg").click(load);
    var countg = -1;
    load();


    function load() {
        var num = 1;
        countg += num;
        $.post( "load.php", 
                {'start_g': 'countg', 'name':'&lt;?=$name?&gt;' }, 
                function(data){
                    $("#posts").append(data);
                }
        );
    }
});
</code></pre>

<p>in load.php simply doing a <code>var_dump($_POST['start_g']);</code>
yields a null variable.</p>

<p>Not too helpful...what am I doing wrong?</p>
