寫網頁的程式最怕的就是 Double Submit(同一時間重覆點擊), 只要簡單加上一段就可以解決這種問題. (於 input 點下去的時後, 馬上將此 button disable 掉)
加此行:
onclick="this.disabled=true"Ex:
<input type="button" name="Submit" value="Submit" onclick="this.disabled=true" />
寫網頁的程式最怕的就是 Double Submit(同一時間重覆點擊), 只要簡單加上一段就可以解決這種問題. (於 input 點下去的時後, 馬上將此 button disable 掉)
加此行:
onclick="this.disabled=true"Ex:
<input type="button" name="Submit" value="Submit" onclick="this.disabled=true" />