How to validate forms with VBScript Part 1
Introduction
For those of us that lean towards VBScript rather than JavaScript, form validation can be just as rewarding, well functional using VBScript.
As with all scripting languages there always seems to be many ways of achieving the same result so I picked the most simple and logical methods of validating form fields.
When to do the validating
The usual time and place to validate your form data is when the user has completed a form and is ready to submit that data for processing. Of course there are times when validation needs to take place before the user gets that far but we will cover that later on.
As a general rule, we will perform our validation when submission occurs and either stop the process if part of our validation criteria has not been met or let the process continue if everything is as we want.
So the trigger for our validation event will be on Submission or in VBScript language onSubmit (See how friendly VBScript can be?)
Reviews
Useful article
Very useful article although I think it is a bit much for 'beginners'. Where is part 2?
RE: Useful article
Hi Cliff,
You are right, this was aimed at the beginner level to explain the trigger action on form validation.
I am working on Part 2 now, hope to have it published for next week.
Regards
Vince
Part 2 ?
Have I missed part 2 of this article or is it still not available?
Thanks,
Cliff
RE: Part 2 ?
Available now Cliff.
You must me logged in to write a review.