Validating multiple text fields

Form validation is the process of checking that a form has been filled in correctly before it is processed.

For example, if your form has a box for the user to type their email address, you might want your form handler to check that they've filled in their address before you deal with the rest of the form.

Shows you how to write a script that ensures your form is filled in correctly before it's sent to your server.

validating multiple text fields-12validating multiple text fields-29validating multiple text fields-43

Some rules accept extra parameters in order to validate your data.This tutorial will show you how to create a Java Script-enabled form that checks whether a user has filled in the form correctly before it's sent to the server. First we'll explain why form validation is a useful thing, and then build up a simple example form, explaining things as we go along.At the end, there's a little exercise to keep you busy too!Simply add a colon after your rule followed by parameters separated by a comma.Add multiple email addresses in single input text field is useful when you are going to send bulk email at one action, you don't need to add multiple input email field for sending bulk email.