Location: PHPKode > scripts > PHP Address book > php-address-book_v_1.00_eng/delete.php
<?php include_once 'includes/header.inc.php'; 

$id = $database->escape($_GET['id']);

if($_GET['action'] == "confirmed"){
    $database->query("DELETE FROM `cal_contacts` WHERE `id` = '$id'");
    header("location: overzicht.php");
}

?>
<legend>Are you sure you want to remove this contact?</legend>
<a href="<?php echo $url; ?>details.php?id=<?php echo $id; ?>" class="btn btn-danger">No</a>
<a href="<?php echo $url; ?>delete.php?id=<?php echo $id; ?>&action=confirmed" class="btn btn-success">Yes</a>

<?php include_once 'includes/footer.inc.php'; ?>
Return current item: PHP Address book