I have a form where I ask the user to input their mailing address. Would there be any issues with asking only street address and zipcode and omitting city and state? User zipcode i开发者_运维知识库n conjunction with zipcode database would result in having full address of the user. Would that be reliable considering that zipcode database is accurate?
Marcin, There is not a one to one relationship between city and zipcode. A city can have multiple zipcodes. A zipcode can cross city lines.
Brian
I wouldn't do that.
- A ZIP code can contain two different towns, each with a "#123 Main Street" address.
- A ZIP code may cross state lines, which means you don't have enough information for shipping/tax details.
- You'll have a very hard time dealing with any customers who live outside of the USA.
精彩评论