Anda harus melewati variabel di tautan hapus. Anda harus melewati <?php echo $contact['name']; ?>
nilai nama di bidang tersembunyi atau berikan nilai ini di URL
Ganti
<td class="contact-delete">
<form action='delete.php' method="post">
<input type="hidden" name="name" value="">
<input type="submit" name="submit" value="Delete">
</form>
</td>
Dengan
<td class="contact-delete">
<form action='delete.php?name="<?php echo $contact['name']; ?>"' method="post">
<input type="hidden" name="name" value="<?php echo $contact['name']; ?>">
<input type="submit" name="submit" value="Delete">
</form>
</td>