| | |
|
Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Field validation using ASP/VBScript |
From: |
Hatter |
Date: |
8/12/2003 7:10:29 PM |
IP: |
195.93.48.9 |
Hello
I have a form which invites the user to input details such as name, email address, etc.
The form, which is CDONTS-based, works fine, but I have no script which assists in validating field input.
I prefer not to use the bulky Javascript 'alert' boxes, but Iam looking for a script which, if the site visitor forgets to type his name (for example) in the relevant form field, then a message, something along the lines of 'Please type in your name', appears above the name field of the form itself.
If the visitor has tupes in nothing, then 2/3/4 error messages should appear simultaneously above (or alongside) their respective fields. We might end up with, for instance, the following:
Please type in your name
NAME FIELD FIELD HERE
Please type in your email address
EMAIL ADDRESS FIELD HERE
Please type in your message
MESSAGE FIELD HERE
Of course, if there all field have been correctly completed, the form should be submitted without any error message appaering above any of the fields.
I have seen this before on the Web, and wondered how it is done.
Thank you for any replies.
Hatter |
Follow Up - Re: Field validation using ASP/VBScript - Bullschmidt 9/30/2003 7:36:29 PM
Follow Up - Re: Field validation using ASP/VBScript - Jordi 12/24/2003 5:22:33 AM
Follow Up - Re: Field validation using ASP/VBScript - sdf 3/21/2004 5:37:41 PM
|
|

|
|
|
|