I apologize if this is a duplicate question, but I couldn't find the answer anywhere else.
I have a page where users are able to see all of their submissions with each one in a separate row. There is an "X" that, when users click it, I want that row to be deleted in the database.
Here is the function that I have (jQuery) that triggers when the user clicks the "X"
$(document).ready(function(){
$(".delete").click(function(e){
var id = e.target.id;
$("#"+id + "_row").hide('slow');
//Need to POST the id variable to PHP file.
});
});
How would I post the ID variable to a php file that would then run the mySQL query on the database?