in reply to Validate Country by ISO 3166 data

Hi shotgunefx. This looks like it would be useful... but I notice that you appear to have most of the world covered plus all the states in the US, but not the provinces and territories of Canada. I've taken the liberty of copying their English names here for use in your module:
"ab" => "AB Alberta", "bc" => "BC British Colombia", "mb" => "MB Manitoba", "nb" => "NB New Brunswick", "nf" => "NF Newfoundland", "nt" => "NT Northwest Territories", "ns" => "NS Nova Scotia", "nu" => "NU Nunavut", "on" => "ON Ontario", "pe" => "PE Prince Edward Island", "qc" => "QC Québec", "sk" => "SK Saskatchewan", "yt" => "YT Yukon",
Thanks for posting your module!

..Guv

Update: upon further inspection, the US states aren't in the list as I had mistakenly thought (mea culpa!) so never mind me.. on the other hand, as shotgunefx mentions the state info is in another module, there's no reason it couldn't be extended with the above... just my 2 cents.

Replies are listed 'Best First'.
Re: Re: Validate Country by ISO 3166 data
by shotgunefx (Parson) on Mar 07, 2002 at 02:01 UTC
    Thanks for the input. I have the State stuff in another module. Apparently as rob_au pointed out there are (now standard) modules that already deal with this so I'm going to take a look at them before I make any more wheels. I do like the easy lookup functionality of this though.

    -Lee

    "To be civilized is to deny one's nature."
Re^2: Validate Country by ISO 3166 data
by tadman (Prior) on Mar 07, 2002 at 23:52 UTC
    Nothing is ever so simple, neh?
    "qc" => "PQ Quebec", "pq" => "PQ Quebec",