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 6.10. 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 6.7 shows you how to snoop through an address for errors.