I have a page that deletes an entry in a MySQL db. There is no safety check though. So, I would like the question posted first, by button or hyperlink.
e.g. Are you sure you wish to delete this entry?
Yes, delete No, do not delete
<?
include('dbconnect.inc');
mysql_query("DELETE FROM products WHERE ProductID='$id'");
mysql_close();
header("Location: admin.php");
?>