JavaScript : Advanced Form Management
Mikael Le Moal
Every site seeking some kind of interactivity includes one or more forms. These might be used to enable users to leave messages
in a guest book, or respond to a forum, or simply send mail. Checking the data prior to sending them to the server can be
a necessary step in order to preserve consistency and guarantee error-free input: e.g. to avoid receiving a negative value
for a person's age.
In this workshop, you will see how to create a set of checking functions or modify data entered in a simple form by the user.
Check out the result.
Back to the source. This workshop will be easier to follow if you have a look at
the complete source of the JavaScript.
Contents: - Creating and Presenting the Form
- Mandatory Numerical Field
- Prohibiting HTML Tags
- Multiple Validations
- Putting the Pieces Together