• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Forms > Restricting a Form Field’s Content

Restricting a Form Field’s Content

Another way to validate a form is to check the data as soon as it’s typed in the field and restrict what you allow the visitor to type. In this example, as soon as the visitor finishes typing in a user name or password, the page will check whether the string is the right length and only contains alphanumeric characters (Figure 8.23).

Figure 8.23. When the page first loads, the Username input box is selected.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint