<form action="..." method="..." onsubmit="document.getElementById('submitbutton').disabled = true"> . . . <input id="submitbutton" type="submit" /> . . . </form>