Hi all,
I am very new to ASP, and need some help.
I have traced some open-source code for form validation, and need to ammend it.
Firstly, I would like to know how to validate for numbers only (telephone). I know isNumeric comes in somewhere, but i don't know where to place it!
Here is the code in question so far:
' telephone field to be no less than 11 characters
IF len(Form_Telephone)<11 THEN
Validated_Form = false
END IF
' telephone field to be no greater than 12 characters
IF len(Form_Telephone)>13 THEN
Validated_Form = false
END IF
As said, I would also like to check for numbers only..
Secondly, the error message on this form is pretty useless - it simply says: "errors detected, go back and fix them". It does not say on what fields the errors are and why!
I would like to know how to ammend that.
Say, for example, an email field. I would like a specific error message to read: "Please enter a valid email address".
This would need to be used for all the fields, ie: name, address etc.
Look forward to help