Ken is absolutely right...and I have never been able to figure out the reasons behind this...which is why I do all of my validation in JS...that, and Im lazy..🙂
What I do, is call a validate function with onClick of the submit button...ie...
<input type = "submit" name = "submit" value = "submit" onClick="javascript: return validate(yourformnamehere);">
and then I havein the header:
function validate(form){
//for textfield not empty
if(form.fieldname1.value==""){
alert('Fieldname1 is a required field');
form.fieldname1.focus();
return false;
}
return true;
}
and so on. Obviously, you can build really complex validation rules, but I have yet to have a rule I can't implement in JS. The one big drawback, is that if the user has JS turned off, you are hosed. The validation doesn't work at all...
But if that isnt an issue, you are set!
Hope this helps
Darren