How Can I Do This? Country Code Listing

18 years 4 months ago #2920 by flavarite
How Can I Do This? Country Code Listing was created by flavarite
I'm not a strong coder by any means but how do I set up a Country field so that the user see's the Full
Country Name but the entry in the database is actually the two letter country code?

So I'd like the user to see/select "United States" and the Entry in the database would actually be "us".

Hope that makes sense.

I have a list of country codes (attached) and their associated full description but not sure how to set up the field and the database to do this.



Thanks,
Bill

Attachment country_array_list.txt not found

Attachments:

Please Log in to join the conversation.

18 years 4 months ago #2926 by nant
Well, the best that I can think of is using the language file to store 6 char country fields for example _UE_US translates to United States of America. If this is acceptable you can use the tips and tricks article on this site as a basis to accomplish it.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.169 seconds

Facebook Twitter LinkedIn