|
|||||||
| The Coffee Lounge Relax and discuss the latest topics of the day. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Postal codes.
Howdy folks. I'm just in the middle of making a form for adding companies to a CMS. The companies being added will have their addresses added to the database and they'll be from all over the world. So I was wondering, what do your postal codes look like?
Obviously I don't want anyone posting their actual postal codes, just examples so I know what kind of input to expect. British ones for example might look like "MA4 2HC". What other kind of formats might I expect from accross the globe?
__________________
I'm thuper, thanks for asking. Do not ask how much you should charge for your work. || Acceptable use policy || Please help us to save Ana It lives! http://www.stephenphilbin.com/ (Well it kinda' does anyway). My portable colour selection tool |
|
#2
|
|||
|
|||
|
Most (or all?) postal codes in Australia are 4 digits. 3058, for example.
Regards.
__________________
http://www.andrewbuntine.com |
|
#3
|
||||
|
||||
|
US Codes are 5 digits, but can be up to 9.
23451 would be a valid code (Virginia Beach, VA), but so would 23451-9018. Most people use 5 digit codes here though...
__________________
I am the sum of the lack of all knowledge... Before You Ask Any Questions... aim54 Digital Solutions |
|
#4
|
||||
|
||||
|
PS - Somewhere in my dusty archives I've got a listing of all US postal codes (called ZIP codes here) if you have need of it...
__________________
I am the sum of the lack of all knowledge... Before You Ask Any Questions... aim54 Digital Solutions |
|
#5
|
||||
|
||||
|
No it's just the general formats I need. I just want to know what sort of input to expect so my system doesn't filter out valid codes and the database column isn't too short or too long. Nice one for the info so far folks.
![]() Come on folks! Post your postal code formats!
__________________
I'm thuper, thanks for asking. Do not ask how much you should charge for your work. || Acceptable use policy || Please help us to save Ana It lives! http://www.stephenphilbin.com/ (Well it kinda' does anyway). My portable colour selection tool |
|
#6
|
||||
|
||||
|
US five digit.
__________________
<? Damn Browser Incompatibilities ?> Dell 1505~2.0 Core Duo~1 gig DDR2-533~ Radeon x1400(256mb)~ Hitachi 100gb 7200rpm <? Go Blue. ?> |
|
#7
|
|||
|
|||
|
Hong Kong: either just abbreviations of the district or the full name.
Examples: New Territories: N.T. Kowloon = Kln Hong Kong Island = H.K. Tsimshatsui = T.S.T All other areas use the full name. China: 6 digits (usually according to city) In fact, you may find this link useful: http://www.bitboost.com/ref/internat...s-formats.html Take care, Snitch.
__________________
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Official Author Site: www.laizhao.com Author Journal: www.livejournal.com/users/snitchcat *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* beware the place where the Labyrinth, the Snitch & the Cat roam... |
|
#8
|
||||
|
||||
|
Wow. Nice find snitch! That's just spanky!
__________________
I'm thuper, thanks for asking. Do not ask how much you should charge for your work. || Acceptable use policy || Please help us to save Ana It lives! http://www.stephenphilbin.com/ (Well it kinda' does anyway). My portable colour selection tool |
|
#9
|
||||
|
||||
|
Officially, everyone in the US has a 9 digit code now, but most (including me) don't know what their whole code is. The 5 digit code will get it to the post office, the last 4 just helps the local post office put it on a route. Theoretically, even if the post office is so small that it only has 1 route, the official code wold be something like #####-0001.
__________________
Jon |
|
#10
|
||||
|
||||
|
Netherlands 4 numbers optional space 2 alphabetic (6-7 characters: 1234 AB)
var objRegExp=/^[1-9]\d{3} ?[a-zA-Z]{2}$/
__________________
At least 98% of internet users' DNA is identical to that of chimpanzees |
|
#11
|
||||
|
||||
|
Anyone got the address of microsoft?
I made a resized image of the Microsoft logo thinking that the address would be an easy one to find so I could do a quick test of the form, but for the life of me I can't find their damned address on the site!
__________________
I'm thuper, thanks for asking. Do not ask how much you should charge for your work. || Acceptable use policy || Please help us to save Ana It lives! http://www.stephenphilbin.com/ (Well it kinda' does anyway). My portable colour selection tool |
|
#12
|
||||
|
||||
|
Microsoft?
One Microsoft Way Redmond, WA 98052 United States of America |
|
#13
|
||||
|
||||
|
Thanks Bob.
__________________
I'm thuper, thanks for asking. Do not ask how much you should charge for your work. || Acceptable use policy || Please help us to save Ana It lives! http://www.stephenphilbin.com/ (Well it kinda' does anyway). My portable colour selection tool |
|
#14
|
||||
|
||||
|
'Ere, what the "NW, #600" in "1211 Connecticut Avenue NW, #600" all about then?
__________________
I'm thuper, thanks for asking. Do not ask how much you should charge for your work. || Acceptable use policy || Please help us to save Ana It lives! http://www.stephenphilbin.com/ (Well it kinda' does anyway). My portable colour selection tool |
|
#15
|
||||
|
||||
|
World Wide Postal Codes - up to 15 characters alphanumeric should cover them all I think.
__________________
Stephen Free Computer Help, blog, forum Web design ebooks and software JavaScript scripts and tutorials |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|