1
Guys I’m having a problem sending duplicate form.
It occurs as follows. I have an html form, when the user of 2 quick clicks or quick click on enter he 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 beginning of the page:
<script>
function envia_tranca() {
document.forms['form'].submit();
document.forms['form'].elements['envia'].disabled = true;
}
</script>
Well that works on Chrome and safari, but in IE the bug continues, someone can help me to solve the problem?
I was able to make Method 2 work, but I wanted to know how to call Method 1 in the form
– Hugo Borges