SyntaxFix
Write A Post
Hire A Developer
Questions
For the JS, try
data: {id: the_id} ... success: function(data) { alert('the server returned ' + data; }
and
$the_id = intval($_POST['id']);
in PHP