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=\'
You should first submit your form and then change the value of your submit:
onClick="this.form.submit(); this.disabled=true; this.value='Sending…'; "