How do I send delete an item using PHP,AJAX,jQuery?

How do I send delete an item using PHP,AJAX,jQuery?

Hello

I need to know how to delete an item using ajax and jquery and PHP?
Normaly here is how i do it using PHP only

  1. <a href="removeItem.php?id=10">Remove Me</a>

in the removeItem.php file i do something like this
$id=$_GET['id'];
  1. mysql_query("DELETE ***********");
so I want to do the same thing using jQuery and ajax so the page will not refresh! so when a user click "Remove Me" link it will instantly remove that item without refreshing the page.


Thanks for your help















    • Topic Participants

    • mike