Why is the following not posting successfully. function nogo(){ $.ajax({ var uid = <?= $user ?>; var utype = <?= $type ?> var anw = "no"; type: "POST", url: "feedback.php", data: "answer=" + anw + "&uid=" + uid + "&utype=" + utype, success: function(returnValue){ alert(returnValue); /*if(returnValue == 1){ $("div.question").fadeOut(); $("div.hidden").fadeIn().delay(2000); }else{ $('div#date').fadeIn(); }*/ } }); } Code (markup): I think it has something to do with the data: part because when I change it to 1 value it works.