+1 vote
by
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?
by
maybe the update is done by sending data from the form?
by
Gleb Starkov Well, when the form is sent, it reloads the page.
by
Programmir and when you hit refresh page, your browser doesn't ask you anything?
by
Gleb Starkov of course)
by
Programmir this is a new post with the same data

2 Answers

+2 votes
by
maybe because the browser sends it back?
by
)
...