I have a custom script that determines UPS shipping based on the first three digits of a zip code.
I still need a user to enter the full 5 digit zip code so saying just have them enter 3 wont work.
What I need to do is TAKE ONLY the first three digits of a zip code into a variable. That's not too hard to do, but the tricky thing is if a zip code is something like 00134.
If there are any zeros in those first 3 digits, I need to strip them.
Here are some examples of what it should looke like:
USER ENTERED: 78626
NEW VARIABLE: 786
USER ENTERED: 00265
NEW VARIABLE: 2
USER ENTERED: 01548
NEW VARIABLE: 15
Hope those examples give some ideas. Thanks for any help in advance.