-
July 8th, 2003, 10:15 AM
#1
Duplicate save .. ASP 3.0
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 ?
-
July 9th, 2003, 02:14 AM
#2
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.
regards
madhu
-
July 9th, 2003, 02:56 AM
#3
thank you .. good idea..
another one I found that can work .. to redirect the user to anoher page after save is complete..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|