/    Sign up×
Community /Pin to ProfileBookmark

Post/Zip Codes

Hi. When you are filling in a personal you can get to choose you postal code from a list which gives you your location. But how do you get the chosen post code to give you your location? Are they linked with a database or something

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@hastxOct 23.2007 — Yes. Postal (or zip) codes, should be unique, which makes them good keys with which to search info associated with them. Large cities can have 20 zip codes.

Upon submitting a zip code, you could run a query to find city, area codes, phone prefixes, county, or usernames listed with that zip. Or, you could do a "search for a store in your area" with zip codes, and since they are short standardized strings, it lessens the potential for spelling errors such as in large city names.
×

Success!

Help @Javajoob spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...