I have created the contact form using HTML and PHP. Also, the mail is coming correctly to mail id. But after the success message, it is redirecting to the form.php
form.php
You could post the form to the same page and check for a success message there, like this.
...other html.... ...other html....