Phone Numbers: Input, Storage and Formatting
Its quite common these days to input one or more phone numbers. Be it home, work, fax or mobile, everyone's got a number, and you will invariably need to collect that piece of data some time soon.
Looking at some sites, its blatantly obvious that they do nothing to validate the data before it is entered into the database and when it is later retrieved, its printed out the same as it was input. A good thing would be to:
- Validate the incoming phone number. Make sure it has enough digits at a minimum
- Store the phone number in a format that is easily retrievable and searchable
- When displaying this phone number in the future, we should have a standardised pattern of display
8 comments March 11th, 2006