Hi, This is a probably a beginner question. I have a form in a.jsp to be posted to b.jsp.Once the form is submitted, I do not want the user to be able to go back to the a.jsp using the browser back button. I've tried using window.location.replace, in <form action = "window.location.replace(URL) method =" post"> and in the onClick of the 'Submit' button, but it seems as though I can only do one thing at a time,post the data(form fields and hidden fields) or disable the 'back' functionality. Please help! Regards.
posted 13 years ago
Best method is to have a cookie that remembers if the form has been submitted and it does not allow another submission.
There are other techniques that have been talked about on this forum.