classic asp form validation
Hi
I am currently using javascript to validate my contact form, but every now and again I am still receiving empty form fills. I cannot find a way of submitting the form without filling the mandatory fields. Is this because some people disable their javascript?
This is an example of my field:
<input type="text" name="name" id="name" size="22" value="name*" onfocus="if( this.value == 'name*') {this.value = '';}" onblur="if (this.value == '') { this.value = 'name*';}" />
I have an asp VB form validation script - but I would like a pop up message to appear instead of the error message appearing in the browser window. Is this possible to do server side?
If not can I use CSS so the field background color goes grey. The design of my form doesn't have space for error messages, so I am trying to find a way to show the errors with either a pop up message or just greying out the fields that are incomplete...
hope that makes sense and hope someone can help! thank you
