I'm having a duplicate form submission problem.
It occurs as follows. I have an html form, when the user gives 2 quick clicks or clicks fast on the enter it sends the form 2 times.
I tried to solve the problem as follows.
I made the form like this:
<form name='form' onsubmit='envia_tranca();'>
And I put this javascript at the top of the page:
<script>
function envia_tranca() {
document.forms['form'].submit();
document.forms['form'].elements['envia'].disabled = true;
}
</script>
Well this works in chrome and safari, but in IE the bug continues, can anyone help me solve the problem?