Jquery post multiple vars to php
<p>I want to post multiple vars from jquery to php</p>

<pre><code>&lt;script&gt;
//vote script
function vote(type){
$.post('vote.php', '{user_id: &lt;?php echo $fb_userid;?&gt;, page_name: &lt;?php echo $get_image;?&gt;, type: type}', function(data){
    $('#voteNumber').html(data);
    });
    }//end function
&lt;/script&gt;
</code></pre>

<p>The above code is not working what is my problem ?</p>

<p>here is my php</p>

<pre><code>if(isset($_POST['user_id']) &amp;&amp; isset($_POST['page_name']) &amp;&amp; isset($_POST['type'])){
        echo "done";
    }
</code></pre>
