Dave Shelley wrote:
Steve,As long as the Javascript event handlers aren't threaded. If they were threaded, both threads could make it into the "if submitted==false" branch
On your form tag, add onSubmit="return(checkSubmit())" and add a javascript function that says:
var submitted=false; function checkSubmit() { if (submitted==false) { sunmitted=true; return true; } else { alert('Already submitted'); return false; } }
That should do it.
I wouldn't be suprised if the javascript event handlers were threaded, because otherwise an infinite loop in one could cause some serious problems.
/John
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
