Stopping mail being sent more than once.
Posted 21 April 2006 - 10:50 AM
I have a form that users can mail me from on my website. At first, all the processing was done on one page but i realised that if the user presses the refresh button, the mail is sent again. I tried using header to stop cashing but that didnt work.
Then I tried redirecting the user to another page once the mail has been sent but if they go back to the previous page and click refresh, it still has the same problem.
What is the best way of stopping mail being sent more than once?
Thanks for your help.
Posted 21 April 2006 - 10:57 AM
Posted 21 April 2006 - 11:26 AM
As the form data is sent via an image onClick event, without actually pressing "submit" refreshing the page doesnt generate the problem you described, it just presents you with an empty form again.
I can't give you an example of the code though, as its not on my PC here at work, its at home.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users