based on my php id first i got my id like this :
var msgId=document.getElementById('newMsg').title;
second on used an ng-click method named readMsg(msgId)
and this is my post information :
$scope.readMsg()=function(msgId){
var citeUrl="http://localhost:2080/phpproject1/a/user/ajax/setflag.php?id="+msgId;
$http.post(citeUrl).then(function (response) {
if (response.status === 200) {
console.log("your message has been cited");
}
console.log(response.status);
}
);
};
but i dont see anything on the console can you plz help me? thnx in advance
how is ur backend processing the request?
Обсуждают сегодня