Can someone please show me example code or specify what i am doing wrong as solutions below have not yielded much luck for me :(
I am working on a contact f
You should use the post/redirect/get pattern here.
Using this pattern advocates sending a redirect as a response from your form handling page, and as a result subsequent refreshes will not trigger these actions more than once.
From the documentation:
...instead of returning a web page directly, the POST operation returns a redirection command.
In pseudo-code, your handler page should have something like: