Safari deforms my ZIP code

I'm running Safari 1.3.1 with Mac OS 10.3.9. At some time in the recent past, Safari stopped accepting my ZIP code in any online form I fill out, not just Autofill forms. It lops off the first zero and leaves a 4-digit code. I suspect this may have something to do with the fact that I live in a very small town in northwestern Massachusetts that is served by four other post offices as well as its own, but I don't know. Internet Explorer takes my ZIP code fine. I've checked my AddressBook card and all that. When I enter my five-digit ZIP code the program (or some other divine intervention) just changes it; I try to change it back, and it won't accept the right ZIP code. So I'm stumped.

Posted on Sep 28, 2005 10:07 AM

Reply
9 replies

Sep 28, 2005 6:52 PM in response to Donald C. Freeman

I have been reporting this problem to Apple as a bug. I have a Zip code that begins with a zero, and most online forms using Safari truncate the leading zero and then complain that I have not entered a valid Zip code. I then have to switch to Internet Explorer where I never have this problem, but this is a pain. None of the work arounds so far suggested work for me. Does anyone know why this happen with Safari? Is there a real fix?

Dec 4, 2005 5:32 PM in response to freelancer

Yeah, lots of people (including me) with ZIP codes
starting with zero are having this problem. I've
found that you can foil its evil plan by entering the
ZIP code last, and then instantly hitting return to
submit the form before Safari has a chance to screw
it up.


I'm having the same probalem and my zip starts with a 1. I've tried your solution but it does not work. Any other ideas out there.

Jan 1, 2006 7:12 PM in response to Donald C. Freeman

I was having this problem, too, but I think I just fixed it.

My ZIP is 19119. I had a ZIP+4 in the "My Card" information in Address Book and was having the same results: enter my 5-digit ZIP into a form and Safari lops off the first "1" leaving just "9119" and an unhappy form.

I removed the +4 information from "My Card," leaving just the 5-digit ZIP code. Forms now accept the full 5-digit ZIP with no lop-off.

I re-entered the +4 and the problem resumed. Took it out again, and the problem ceased.

Give this a try, folks. Let us all know if this works. Then write Apple, because it shouldn't work like that.

Byron

May 3, 2006 8:34 AM in response to Big Mike

I am having the same problem with Safari dropping the lead zero from my zip code. It doesn't happen !00% of the time, but often enough to annoy me.

I believe the problem is in the way the zip code field is defined by the web site. If they define it as numeric, Safari drops the lead zero, and rightfully so, because lead zeros on "numbers" are irrelevent. However, zip codes are not "numbers", they are codes (you cannot add two zip codes together and get a meaningful answer), and should be defined as strings.

The previous suggestions will work some of the time:

1. Try using a zip+4 number. Safari will then treat it as a string and not lop off the lead zero. However, many web site only allow 5 digit zip codes.

2. Enter your zip code last, and hit return to sumbit the page, without tabbing out of the zip code field. This works sometimes.

3. Resort to using Internet Explorer to visit those problem sites, ugh.

The real problem is not in Safari. It's doing the right thing. The problem lies with those 50 million young, wipper-snapper, fledgling programmers that don't understand basic data processing theory. Codes are not numbers, even if they only contain numeric digits, they are strings.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari deforms my ZIP code

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.