Well, all of those solutions are fine, but this one takes the strain off the server's side. It uses JavaScript, and should be relatively easy to follow.
Here is the JavaScript portion:
var flag = 0;
function StopSubmit() {
if(!flag) { flag++; return 1; }
return 0;
}