Click to See Complete Forum and Search --> : Duplicate save .. ASP 3.0


hspc
July 8th, 2003, 11:15 AM
Hi,,
I make a page Save.asp that gets some data from a form in another page.. (method=Get)
Save.asp saves data to a DB then displays a success message..
the problem :
when the user press (Refresh or reload) in the browser the data is saved again..
How to prevent this from happenning ?

hellomadhu
July 9th, 2003, 03:14 AM
may be u can have some session variable set when u save the record. you can check the value of the variable everytime ur save code is executed.

and when u display the form for entering a new record,u can clear the variable.

hspc
July 9th, 2003, 03:56 AM
thank you .. good idea.. :)
another one I found that can work .. to redirect the user to anoher page after save is complete..