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

Hour 15. User Input Elements > Task: Checking for a Valid Input

Task: Checking for a Valid Input

Next, let's build a simple user input form that checks the user's input as the user types. It asks for the user's name, year of birth, and e-mail address. It checks to make sure that each entry fits certain criteria.

The name, for instance, should be at least three characters long. The date of birth should be four digits and be sometime in the last 100 years. E-mail address should be at least seven characters long and be of the format a@b.c, where a and b can be anything, but c must be at least three characters long. The “@” and period must be present.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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