There is a button to delete goods:
<a href="cart.php?id='.$row["cart_id"].'&action=delete" class="btn btn--small btn--secondary cart__remove">Удалить2</a> When clicked, it jumps to the page 123.ru/cart.php ? Id = 11 & action = delete
I need that when I clicked the product was also removed, but it was thrown onto page 123.ru