I want to post multiple vars from jquery to php
<script>
//vote script
function vote(type){
$.post('vote.php', '{user_id: <?php echo $fb_userid;?>, page_name: <?php echo $get_image;?>, type: type}', function(data){
$('#voteNumber').html(data);
});
}//end function
</script>
The above code is not working what is my problem ?
here is my php
if(isset($_POST['user_id']) && isset($_POST['page_name']) && isset($_POST['type'])){
echo "done";
}