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

Chapter 7. Validating Form Data > Is the Right Thing Entered?

Is the Right Thing Entered?

Sadly, there are no real, regular expressions in ActionScript. You can use the restrict property, but for real data-cleaning, you need to use a server-side script.

A common example in computer books is to see whether or not the user entered a real email address. The thing is, it's trivial to enter a bogus email address, so I think the only reason to check for a real email address format is if you require an email for account verification or something (that is, the user signs up for something). You send the user an email with an account activation link—to make sure the email address is real—which he or she clicks, and lo! The user has an account.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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