I\'m trying to send an ajax POST to a php file, however the php file sends a notice of \"undefined index\", and the php file never seems to receive the value i\'m trying to
Change Ajax syntax...
$.ajax({ type: "POST", url: 'deleteMediaFromDatabase.php', data: {'vals' : val},//Have u tried this success: function(output) { alert(output); } error: function(request, status, error){ alert("Error: Could not delete"); } );