After the form is submitted, it goes to the code for sending the email in the same file. When I get $_POST I delete each element of the array unset($_POST['here post name']). But when I refresh the page, the data is not updated and the mail is automatically sent again with the same $_POST fields filled in before. Why does this happen? And how do I delete the array after sending?