I found this code to prevent double submit a form, but this code is not working as it should, it is disabling the submit button and changing the button value to "Please wait" but it is also submitting form.
<input type="submit" value="Submit" name="reply" onclick="this.disabled=true; this.value='Please Wait...';" /> How can I fix this? Thanks in advance
return false;at the end. Also, when should it submit if not when you click it?