79115777

Date: 2024-10-22 21:33:38
Score: 1
Natty:
Report link

You are passing value to Ajax data property. Try to send the data in key,values form. Do something like this,

let pid = localStorage.getItem("pid")
let data = { "com-btn": true, "comments": [], "pid": pid }
$.ajax({
type: 'POST',
url: 'addcomments.php',
data: JSON.stringify(data),

});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Laeeq A.