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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Same record added to db after reload/refresh

Status
Not open for further replies.

new2unix

Programmer
Feb 5, 2001
143
US
Hi,

My form calls a second asp page to update the database. In the second page, there is an IF... THEN statement:

IF NOT isempty( Request ( "Submit" )) THEN ...

to execute the "INSERT INTO" routine and display the "Thank you..." message. Problem was, I noticed, if I clicked reload/refresh, the same record will be added to the db again. Is there anyway I can clear out the "Submit" value after the 1st successful "INSERT INTO" routine?

Thanks

Mike

 
after your INSERT instruction you put:

response.redirect "thanks.asp"
response.end

(this is just 1 idea to solve this)


br
Gerard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top