I have a submit button at the end of the form.
I have added the following condition to the submit button:
onClick=\"this.disabled=true; this.value=\'
Probably you're submitting the form twice. Remove the this.form.submit() or add return false at the end.
this.form.submit()
return false
you should end up with onClick="this.disabled=true; this.value='Sending…';"
onClick="this.disabled=true; this.value='Sending…';"