|
-
Jan 10th, 2007, 11:20 PM
#1
Thread Starter
Fanatic Member
page refresh and back button issue
hi
please any give solutions for this two issues:
1.i am doing insert option.then ater inserting if i press f5 it isgetting refreshed.so again inserting action happening.my need is if i press f5 after some action the last action should not happen again.
2.consider i have two forms. in first form i am inserting some datas to database and i am going to next page.then if i come to first page using back button and press insert button it should not do the insert operation.
can any one please give me solution for this.
-
Jan 11th, 2007, 11:25 AM
#2
Re: page refresh and back button issue
When a user inserts, take them to another page where you tell them that you are inserting the data. You could then redirect them to the original page. This way, when they press refresh, it will show the page with the form fields not filled in.
Also, disable caching on that page so that navigating to it with the browser back button greets them with a 'page expired' message or a fresh copy of the page.
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
|