I have created a cart page from a table named booking .
The cart page has item name and asubmit button named "delete".
There has a lot of items in the cart sheet and every item has a "delete" submit type button.
The items are inside one form.
I need to delete one item from the table booking by clicking the "delete" button of the item.
How can I do it using PHP.
<form action="delete.php" method="POST">
<div>
<h2>Item1</h2>
<input type="submit" name="item1" value="delete">
</div>
<div>
<h2>Item2</h2>
<input type="submit" name="item2" value="delete">
</div>
<div>
<h2>Item3</h2>
<input type="submit" name="item3" value="delete">
</div>
...
<!--There has a lot of items like that-->
</form>
Now for example I need to delete item100. How can I do it?
Edit: Here is the delete.php code-
<?php
$query = mysql_query("delete from notification where item = 'item100'") or die(mysql_error());
?>