Thanks sde
I plugged it in, and it seems to be working
If a field has one whitespace and then some real content, it doesn't strip the whitespace (as far as I can see - I'm gonna test some more later) - that's good in this case.
I ran into a prob.
If no field has any content, the script does give you the alert, but as soon as you click the alert, the form still tries to submit to ACTION="http://site/blah/"
In other words, the form is trying to submit the data whether or not it passes the validation test.
Would there be a way where if the alert is triggered, you click the OK and the page just sits there while the visitor enters real data, and then the visitor clicks submit again and assuming valid data has been entered, then the script submits the data?
Many thanks
