Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh problem with submitted form.

Status
Not open for further replies.

cumap

IS-IT--Management
Jul 9, 2007
268
US
Hi all,
Could you help me understand why this problem of mine not going away.

I'm having: (head number is the number of actual pages I have for this Contact Us function)
1. a Contact Us form in one page, then submitted to another page...
2. to process, create new xxx number, save to database, send me noticed email, then
Code:
Response.Redirect("thankyou.asp?id=xxx")
to...
3. ANOTHER page to display thank you note with his/her new "xxx" number that was created and sent along with the response.redirect function from the page 2.

The reason I need to have the 3rd page because I'm trying to avoid the temptation the user might have to refresh and the new email created as well as a new "xxx" number will also be created at the same time.

THE PROBLEM?
my worry not going away, because even in the 3rd "thank you" page, I still got new data in database, new email with NEW xxx number whenever I REFRESH it.

WHY?

Thanks!!!
 
Please, for now, ignore this thread of mine due to the fact that I woke up this morning and the problem had gone away.

WHY? I don't know for sure but I do know this...
just now, I remembered to close Recordset and Database link that I didn't do yesterday. Tested it again, and have yet seen the "refresh" problem so far. I'm pretty sure whatever I just did has anything to do with the trouble, but since it is not there anymore, I'm a happy guy!!! :)

Thank you for any attention you might waist on this thread!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top