Hello. I am constructing feedback form

- SMTP
- ADO
- Captcha

OK. Everything works fine to me. Except one important thing. After smtp and sql injection and Reset(), user can hit back in browser and after that resend message. that's not good. How to make the data in form not to be accessible twice?

Perhaps, somebody can link me to some useful resource?

Recommended Answers

All 2 Replies

>How to make the data in form not to be accessible twice?

Golden rule:
1. Turn off autocomplete.
2. Disabled the response cache.
3. Disabled the viewState.

Unfortunately, this approach doesn't work for me.
I've found other way to do it. Just put in master page in <head>
the next code

<script type="text/javascript">
function noBack(){window.history.forward();}
noBack();
window.onload=noBack;
window.onpageshow=function(evt){if(evt.persisted)noBack();}
window.onunload=function(){void(0);}
</script>

And it works!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.