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

VALIDATING STRINGS

As mentioned earlier, when validating different types of data (names, phone numbers, email addresses, and so on) it’s best to break the process into specialized functions, or validation routines. We will begin that process in this exercise.

The first type of data our form asks for is the user’s name. For our form, the data entered must meet two requirements:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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