Miscellaneous

  Home arrow Miscellaneous arrow Page 2 - Form and Spelling Validation
MISCELLANEOUS

Form and Spelling Validation
By: Matt Wade
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2003-07-20

    Table of Contents:
  • Form and Spelling Validation
  • Common Form Validations
  • Spell Checking
  • Summary

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Form and Spelling Validation - Common Form Validations


    (Page 2 of 14 )

    When building web applications, it seems that we need to validate the same type of data repeatedly. Rather than recode our functions to do this data checking each time, we should write a set of functions once that cover the most common validations we need to accomplish. Once written, we can reuse these functions in every application we develop where there is a need for these common validation routines.

    In this section, we will cover some of the more common form elements we need to validate. Each will be presented as a function that will return TRUE or FALSE depending on the elements validity. Please note that most of the functions presented in this section are specifically coded to examine English input. If you require validation for another language, you will need to modify these functions to suit. The elements we will validate in this section are as follows.

  • Basic Data Checking
  • Zip/Postal Codes
  • URLs
  • Email Addresses
  • Password Strength

    After examining each function, we will then build a form with each of the data elements and demonstrate how to validate the data and mark invalid data for re-entry.

    More Miscellaneous Articles
    More By Matt Wade

    blog comments powered by Disqus
  • MISCELLANEOUS ARTICLES

    - Oracle Database XE: Indexes and Sequences
    - Modifying Tables in Oracle Database XE
    - Oracle Database XE: Tables and Constraints
    - More on Oracle Databases and Datatypes
    - Oracle Database XE Datatypes: Datetime and L...
    - Oracle Database XE Datatypes: Character and ...
    - From Databases to Datatypes
    - Firefox 3.6.6 Released with Improved Plug-in...
    - Attention Bloggers: WordPress 3.0 Now Releas...
    - Reflection in PHP 5
    - Inheritance and Other Advanced OOP Features
    - Advanced OOP Features
    - Linux from Scratch V.6.6 Review
    - Linux Gaining in Strength
    - Install Slackware on Your Old PC


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap