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

Chapter 8. Form Handling > Validating Email Addresses

Validating Email Addresses

Internet addresses can be tricky things for users, especially new users, to type. You can help them out by scanning the email address they enter and checking it for improper form. For example, you can check that there's only one @ sign, and that there are no invalid characters, as there are in Figure 8.15. The limit, of course, is that your script can't catch misspellings, so if the user meant to type in joe@myprovider.com and instead entered joe@yprovider.com the mistake will go through. Script 8.10 shows you how to snoop through an address for errors.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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