I have a form which is submitted using an <input> tag,
within that i have:
<input type="submit" value="Create" name="Create" onClick='this.form.Create.disabled=true;this.form.Submit();'>
what i'm trying to do is first disable the button, so users cannot keep on pressing the button, after which, it submits the form... the reason why i need this is bec, when the submit button is click, the query behind it takes time to execute, so impatient users can click on it multiple times, which will result to multiple entries.
within that i have:
<input type="submit" value="Create" name="Create" onClick='this.form.Create.disabled=true;this.form.Submit();'>
what i'm trying to do is first disable the button, so users cannot keep on pressing the button, after which, it submits the form... the reason why i need this is bec, when the submit button is click, the query behind it takes time to execute, so impatient users can click on it multiple times, which will result to multiple entries.