Re: [PHP] International Addresses and Telephones

From: Ajai Khattri (ajai_at_bway.net)
Date: 12/04/03


Date: Thu, 4 Dec 2003 11:28:20 -0500
To: php-general@lists.php.net

On Thu, Dec 04, 2003 at 09:53:16AM -0600, Rankin, Randy wrote:

> I have a form which captures US addresses ( address, city, state ) and
> telephone numbers ( 10 digit ) and am writing this data to a MySQL table. I
> need to expand this to capture non-US info, so I was hoping for some
> guidance on forms and table structures. I have googled this to death and
> still haven't come up with anything.

I tend to use an internationalized format for all phone numbers, such as:

+CCC (NP)AAAXXXXXXX

where:
CCC = country code (i.e. 44 for UK, 39 for Italy, etc)
NP = optional national prefix (e.g. in the US this is 1)
AAA = area code (212 for New York, 6 for Rome, etc)
XXXXXXX = actual phone number

-- 
Aj.
Sys. Admin / Developer


Relevant Pages

  • Re: [PHP] International Addresses and Telephones
    ... > need to expand this to capture non-US info, so I was hoping for some ... > guidance on forms and table structures. ... Pablo ...
    (php.general)
  • Re: TreeView help please
    ... indexesI needed by using the treeviews Expand event but I have a minor ... Code in expand event is only one line. ... > capture the Expand event with your own handler. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Tweak boot time?
    ... Toshiba S3 with 2Gb memory. ... Would appreciate guidance on this and on how to ... capture and restore registry if needed. ...
    (microsoft.public.windowsxp.general)
  • Re: bulk_capture
    ... I am using Premiere and secondly both internal and external HD ... space and have about 300 gig but would expand this - my main concern was ... reason why you can't 'capture' all 6 hrs. ...
    (uk.rec.video.digital)
  • Re: [PHP] International Addresses and Telephones
    ... Rankin, Randy wrote: ... >need to expand this to capture non-US info, so I was hoping for some ...
    (php.general)