You will need just this tiny js script:
function disableOnSubmit(form ){ for (var i = 0; i < form.length; i++){ var e = form.elements[i]; if (e.type.toLowerCase() == "button" || e.type.toLowerCase() == "reset" || e.type.toLowerCase() == "submit") { e.disabled=true; } } } and then add : <form method="POST" action="/account" name="fm" onsubmit="disableOnSubmit( document.fm)" > That's all what you need - i think