Hi guys,
i've got this file, that takes in form values, called by a form on the previous page.
In this file, i collect the form values, and string them together to form a request string for an xml request, which will return me a string of response. After i receive this response, i will insert an entry (response and time inserted) into my database.
After which, an email will be sent out, regardless if the response returned and error or a success message. Then redirects the user to a thank you page.
This process has been working fine for a couple of months now, until yesterday, i discovered, this page inserted a log into my database 3 times, @ 2008-10-02 14:12:15, 2008-10-02 14:12:16 and 2008-10-02 14:12:17! all 1 ms apart. User claimed she did not refresh the page.
It seemed that the xml query was submitted 3 times, i got 3 duplicate entries in my database and emails sent out.
The same thing happened again today, with a different user. No codes have been changed. Other than the 2 incidents, the code is still working fine for the other users.
This one has got me stumped. Any idea what could have caused this?