Start Validating data javascript

Validating data javascript

When you submit a form to a CGI program that resides on the server, it is usually programmed to do its own check for errors.

If the element complies than sufunction returns an empty string.

Otherwise it returns a message describing the error and highlight appropriate element with yellow.

A Java Script check is useful because it stops the form from being submitted if there is a problem, saving lots of time for your readers.

By using Field Val UI to build a form and then Field Val to validate the input, you can pass the error straight back into the form.

Any interactive web site has form input - a place where the users input different kind of information.

This data is passed to ASP script, or some other technology and if the data contains an error, there will be a delay before the information travels over the Internet to the server, is examined on the server, and then returns to the user along with an error message.

All those functions are called from another function.