I am designing a survey and once the user leaves the first page...I do not want them to be able to go back and resubmit the form again. I have disabled the back button by using the following code
<script>
history.forward();
</script>
Since the user has to login, I have it coded in the database once the complete the survey. But here is my problem. Once the user goes to the second part of the survey, they can get back to the first page by typing in the url. I have it coded at top to redirect to another page in the session variable is null...but since it is not null, the can get to the page.
Is there anyway to tell how a person got to the page...for instance IF previous url <> "login.asp" then redirect to login.asp.
Or does anyone have any other suggestions.
Thanks
<script>
history.forward();
</script>
Since the user has to login, I have it coded in the database once the complete the survey. But here is my problem. Once the user goes to the second part of the survey, they can get back to the first page by typing in the url. I have it coded at top to redirect to another page in the session variable is null...but since it is not null, the can get to the page.
Is there anyway to tell how a person got to the page...for instance IF previous url <> "login.asp" then redirect to login.asp.
Or does anyone have any other suggestions.
Thanks