<button type="button" onclick="this.disabled = true; this.form.submit();">Register Account</button>
This submits the form that it is in, and disables the button. Is there any slowness or disadvantage to using this vs just
Where the button itself submits instead of using an unclick event for the form submission? If you use a button like this though disabling the button after it is clicked becomes more complicated!!