So I've google this problem, they all give the same code but it never works. I want to be able to only click on the button once so you can't spam click the button sending the from more than once.
Here my HTML from.
<form id="sign" name="sign" method="post">
<input type="text" name="username" placeholder="Username"><br>
<input type="text" name="email" placeholder="Email"><br>
<input type="password" name="password" placeholder="Password"><br>
<input type="submit" name="submit" value="Signup">
</form>
Now the fix people are saying on Google is to add this code to the submit input type.
onclick="this.value='Submitting ..'; this.disabled=true; this.form.submit();"
or
onclick="this.value='Submitting ..'; this.disabled=true;"
Now this disables the submit button after it's been clicked like I want but it stops the form being submitted which defects the point in doing it in the first place.
Finally code that doesn't work
<form id="sign" name="sign" method="post">
<input type="text" name="username" placeholder="Username"><br>
<input type="text" name="email" placeholder="Email"><br>
<input type="password" name="password" placeholder="Password"><br>
<input type="submit" name="submit" value="Signup" onclick="this.value='Submitting ..'; this.disabled=true;">
</form>