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

Chapter 4. Error Handling inForms > Project II: Checking for Erroneous Data in ...

Project II: Checking for Erroneous Data in Form Fields

Checking E-mail Addresses for Valid Characters

You can never be 100% sure that someone is giving you a working e-mail address. There's no formula or central database that keeps track of all the valid e-mail addresses in the world. However, you can be sure that a person is giving you something that at least looks like an e-mail address by checking for an @ symbol and a period. Even though we are treating this section as a new project, the code in this chapter is really all part of one script. We will add this new code after our existing code, which is still within the errorCheck() function.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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