Posted by John on 09/18/05 20:14
I have a problem with refresh.
I have a contact form that sends an email when the submit button is
pressed. I have a hidden variable and the code for emailing is only
executed if the variable is set. The variable is cleared at the end of
the code. All works as expected unless the REFRESH button is pressed
by the user in which case the script is executed and the emails are
sent once more. Debugging shows the test variable is set again even
though it was unset before exiting on the previous run. How can this
be?
I know there are some things I could do like using database entries or
cookies to hold the variable or even jump to another page which I do
not want to do.
There must be a simple explanation and hopefully solution to this.
Thanks
--
John
Navigation:
[Reply to this message]
|