<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Dro &#187; Programming</title>
	<atom:link href="http://the-dro.com/category/web-design/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://the-dro.com</link>
	<description>Musician, Web Developer, Programmer, Graphic Designer, &#38; Editor</description>
	<lastBuildDate>Thu, 22 Dec 2011 00:11:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Peeled Fingers from Too Much Typing</title>
		<link>http://the-dro.com/web-design/programming/peeled-fingers-from-too-much-typing/</link>
		<comments>http://the-dro.com/web-design/programming/peeled-fingers-from-too-much-typing/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 21:59:47 +0000</pubDate>
		<dc:creator>The Dro</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fingers peeling]]></category>
		<category><![CDATA[hard work]]></category>
		<category><![CDATA[no sleep]]></category>
		<category><![CDATA[peeling fingers]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://the-dro.com/?p=621</guid>
		<description><![CDATA[I&#8217;ve been seriously busting ass working lately. I pulled quite a few all-nighter&#8217;s the past couple weeks and it&#8217;s beginning too look like my fingers are going to fall off from all the typing! I&#8217;m about a week over the dead-line but I&#8217;m trying everything I can to get this thing launched ASAP. I didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://the-dro.com/wp-content/uploads/2011/10/finger_peel.jpg"><img src="http://the-dro.com/wp-content/uploads/2011/10/finger_peel.jpg" alt="finger peel Peeled Fingers from Too Much Typing" title="finger_peel" width="528" height="500" class="aligncenter size-full wp-image-622" /></a></p>
<p>I&#8217;ve been seriously busting ass working lately. I pulled quite a few all-nighter&#8217;s the past couple weeks and it&#8217;s beginning too look like my fingers are going to fall off from all the typing! I&#8217;m about a week over the dead-line but I&#8217;m trying everything I can to get this thing launched ASAP. I didn&#8217;t think about all of the minor things that would be included in this when I first came up with a time line, but these modules are imperative to a good, working system.</p>
]]></content:encoded>
			<wfw:commentRss>http://the-dro.com/web-design/programming/peeled-fingers-from-too-much-typing/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PHP &amp; HTML Code for Displaying Country Codes</title>
		<link>http://the-dro.com/web-design/programming/php-and-html-code-for-displaying-country-drop-down-inputs/</link>
		<comments>http://the-dro.com/web-design/programming/php-and-html-code-for-displaying-country-drop-down-inputs/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 03:29:45 +0000</pubDate>
		<dc:creator>The Dro</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Country Abbreviations]]></category>
		<category><![CDATA[Country Codes]]></category>
		<category><![CDATA[Country Drop Down Box]]></category>
		<category><![CDATA[Edit Page]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Country Drop-Down]]></category>
		<category><![CDATA[Input]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://the-dro.com/?p=531</guid>
		<description><![CDATA[Tonight I was in the middle of coding a project I&#8217;ve been working on for the past couple of months and I realized what a pain in the ass it can become to deal with country drop-down select inputs. One of the main issues I came up with was how I should display the country [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight I was in the middle of coding a project I&#8217;ve been working on for the past couple of months and I realized what a pain in the ass it can become to deal with country drop-down select inputs. One of the main issues I came up with was how I should display the country code drop-down box in the Edit Page. In order for it to properly display, you have to tell the form to select the correct country from the drop down depending on what your MySQL database has stored. So for example, if your MySQL Database field stored &#8220;US&#8221; as the country code you&#8217;d obviously want it to display &#8220;United States&#8221; in your HTML select input. However, What happens when you get country codes like &#8220;AG, BN, EE, &#8230;etc.&#8221; Most people don&#8217;t even know what most of the country code abbreviations are so I wanted to put together a post to help others who come into similar issues. </p>
<p>Here&#8217;s a list of all the country codes I&#8217;m using:</p>
<h2 align="center">Two Letter Country Abbreviations</h2>
<table align="center">
<tr>
<td>
<table>
<tr>
<td>AC</td>
<td>&nbsp;</td>
<td>Ascension Island</td>
</tr>
<tr>
<td>AD</td>
<td>&nbsp;</td>
<td>Andorra</td>
</tr>
<tr>
<td>AE</td>
<td>&nbsp;</td>
<td>United Arab Emirates</td>
</tr>
<tr>
<td>AF</td>
<td>&nbsp;</td>
<td>Afghanistan</td>
</tr>
<tr>
<td>AG</td>
<td>&nbsp;</td>
<td>Antigua and Barbuda</td>
</tr>
<tr>
<td>AI</td>
<td>&nbsp;</td>
<td>Anguilla</td>
</tr>
<tr>
<td>AL</td>
<td>&nbsp;</td>
<td>Albania</td>
</tr>
<tr>
<td>AM</td>
<td>&nbsp;</td>
<td>Armenia</td>
</tr>
<tr>
<td>AN</td>
<td>&nbsp;</td>
<td>Netherland Antilles</td>
</tr>
<tr>
<td>AO</td>
<td>&nbsp;</td>
<td>Angola</td>
</tr>
<tr>
<td>AQ</td>
<td>&nbsp;</td>
<td>Antarctica</td>
</tr>
<tr>
<td>AR</td>
<td>&nbsp;</td>
<td>Argentina</td>
</tr>
<tr>
<td>AS</td>
<td>&nbsp;</td>
<td>American Samoa</td>
</tr>
<tr>
<td>AT</td>
<td>&nbsp;</td>
<td>Austria</td>
</tr>
<tr>
<td>AU</td>
<td>&nbsp;</td>
<td>Australia</td>
</tr>
<tr>
<td>AW</td>
<td>&nbsp;</td>
<td>Aruba</td>
</tr>
<tr>
<td>AZ</td>
<td>&nbsp;</td>
<td>Azerbaidjan</td>
</tr>
<tr>
<td>BA</td>
<td>&nbsp;</td>
<td>Bosnia-Herzegovina</td>
</tr>
<tr>
<td>BB</td>
<td>&nbsp;</td>
<td>Barbados</td>
</tr>
<tr>
<td>BD</td>
<td>&nbsp;</td>
<td>Bangladesh</td>
</tr>
<tr>
<td>BE</td>
<td>&nbsp;</td>
<td>Belgium</td>
</tr>
<tr>
<td>BF</td>
<td>&nbsp;</td>
<td>Burkina Faso</td>
</tr>
<tr>
<td>BG</td>
<td>&nbsp;</td>
<td>Bulgaria</td>
</tr>
<tr>
<td>BH</td>
<td>&nbsp;</td>
<td>Bahrain</td>
</tr>
<tr>
<td>BI</td>
<td>&nbsp;</td>
<td>Burundi</td>
</tr>
<tr>
<td>BJ</td>
<td>&nbsp;</td>
<td>Benin</td>
</tr>
<tr>
<td>BM</td>
<td>&nbsp;</td>
<td>Bermuda</td>
</tr>
<tr>
<td>BN</td>
<td>&nbsp;</td>
<td>Brunei Darussalam</td>
</tr>
<tr>
<td>BO</td>
<td>&nbsp;</td>
<td>Bolivia</td>
</tr>
<tr>
<td>BR</td>
<td>&nbsp;</td>
<td>Brazil</td>
</tr>
<tr>
<td>BS</td>
<td>&nbsp;</td>
<td>Bahamas</td>
</tr>
<tr>
<td>BT</td>
<td>&nbsp;</td>
<td>Buthan</td>
</tr>
<tr>
<td>BV</td>
<td>&nbsp;</td>
<td>Bouvet Island</td>
</tr>
<tr>
<td>BW</td>
<td>&nbsp;</td>
<td>Botswana</td>
</tr>
<tr>
<td>BY</td>
<td>&nbsp;</td>
<td>Belarus</td>
</tr>
<tr>
<td>BZ</td>
<td>&nbsp;</td>
<td>Belize</td>
</tr>
<tr>
<td>CA</td>
<td>&nbsp;</td>
<td>Canada</td>
</tr>
<tr>
<td>CC</td>
<td>&nbsp;</td>
<td>Cocos (Keeling) Isl.</td>
</tr>
<tr>
<td>CD</td>
<td>&nbsp;</td>
<td>Congo, The Democratic Republic of the</td>
</tr>
<tr>
<td>CF</td>
<td>&nbsp;</td>
<td>Central African Rep.</td>
</tr>
<tr>
<td>CG</td>
<td>&nbsp;</td>
<td>Congo, Republic of</td>
</tr>
<tr>
<td>CH</td>
<td>&nbsp;</td>
<td>Switzerland</td>
</tr>
<tr>
<td>CI</td>
<td>&nbsp;</td>
<td>Ivory Coast</td>
</tr>
<tr>
<td>CK</td>
<td>&nbsp;</td>
<td>Cook Islands</td>
</tr>
<tr>
<td>CL</td>
<td>&nbsp;</td>
<td>Chile</td>
</tr>
<tr>
<td>CM</td>
<td>&nbsp;</td>
<td>Cameroon</td>
</tr>
<tr>
<td>CN</td>
<td>&nbsp;</td>
<td>China</td>
</tr>
<tr>
<td>CO</td>
<td>&nbsp;</td>
<td>Colombia</td>
</tr>
<tr>
<td>CR</td>
<td>&nbsp;</td>
<td>Costa Rica</td>
</tr>
<tr>
<td>CS</td>
<td>&nbsp;</td>
<td>Serbia and Montenegro</td>
</tr>
<tr>
<td>CU</td>
<td>&nbsp;</td>
<td>Cuba</td>
</tr>
<tr>
<td>CV</td>
<td>&nbsp;</td>
<td>Cape Verde</td>
</tr>
<tr>
<td>CX</td>
<td>&nbsp;</td>
<td>Christmas Island</td>
</tr>
<tr>
<td>CY</td>
<td>&nbsp;</td>
<td>Cyprus</td>
</tr>
<tr>
<td>CZ</td>
<td>&nbsp;</td>
<td>Czech Republic</td>
</tr>
<tr>
<td>DE</td>
<td>&nbsp;</td>
<td>Germany</td>
</tr>
<tr>
<td>DJ</td>
<td>&nbsp;</td>
<td>Djibouti</td>
</tr>
<tr>
<td>DK</td>
<td>&nbsp;</td>
<td>Denmark</td>
</tr>
<tr>
<td>DM</td>
<td>&nbsp;</td>
<td>Dominica</td>
</tr>
<tr>
<td>DO</td>
<td>&nbsp;</td>
<td>Dominican Republic</td>
</tr>
<tr>
<td>DZ</td>
<td>&nbsp;</td>
<td>Algeria</td>
</tr>
<tr>
<td>EC</td>
<td>&nbsp;</td>
<td>Ecuador</td>
</tr>
<tr>
<td>EE</td>
<td>&nbsp;</td>
<td>Estonia</td>
</tr>
<tr>
<td>EG</td>
<td>&nbsp;</td>
<td>Egypt</td>
</tr>
<tr>
<td>EH</td>
<td>&nbsp;</td>
<td>Western Sahara</td>
</tr>
<tr>
<td>ER</td>
<td>&nbsp;</td>
<td>Eritrea</td>
</tr>
<tr>
<td>ES</td>
<td>&nbsp;</td>
<td>Spain</td>
</tr>
<tr>
<td>ET</td>
<td>&nbsp;</td>
<td>Ethiopia</td>
</tr>
<tr>
<td>FI</td>
<td>&nbsp;</td>
<td>Finland</td>
</tr>
<tr>
<td>FJ</td>
<td>&nbsp;</td>
<td>Fiji</td>
</tr>
<tr>
<td>FK</td>
<td>&nbsp;</td>
<td>Falkland Isl.(Malvinas)</td>
</tr>
<tr>
<td>FM</td>
<td>&nbsp;</td>
<td>Micronesia</td>
</tr>
<tr>
<td>FO</td>
<td>&nbsp;</td>
<td>Faroe Islands</td>
</tr>
<tr>
<td>FR</td>
<td>&nbsp;</td>
<td>France</td>
</tr>
<tr>
<td>GA</td>
<td>&nbsp;</td>
<td>Gabon</td>
</tr>
<tr>
<td>GB</td>
<td>&nbsp;</td>
<td>Great Britain (UK)</td>
</tr>
<tr>
<td>GD</td>
<td>&nbsp;</td>
<td>Grenada</td>
</tr>
<tr>
<td>GE</td>
<td>&nbsp;</td>
<td>Georgia</td>
</tr>
<tr>
<td>GF</td>
<td>&nbsp;</td>
<td>Guyana (Fr.)</td>
</tr>
<tr>
<td>GG</td>
<td>&nbsp;</td>
<td>Guernsey</td>
</tr>
<tr>
<td>GH</td>
<td>&nbsp;</td>
<td>Ghana</td>
</tr>
<tr>
<td>GI</td>
<td>&nbsp;</td>
<td>Gibraltar</td>
</tr>
<tr>
<td>GL</td>
<td>&nbsp;</td>
<td>Greenland</td>
</tr>
<tr>
<td>GM</td>
<td>&nbsp;</td>
<td>Gambia</td>
</tr>
<tr>
<td>GN</td>
<td>&nbsp;</td>
<td>Guinea</td>
</tr>
<tr>
<td>GP</td>
<td>&nbsp;</td>
<td>Guadeloupe (Fr.)</td>
</tr>
<tr>
<td>GQ</td>
<td>&nbsp;</td>
<td>Equatorial Guinea</td>
</tr>
<tr>
<td>GR</td>
<td>&nbsp;</td>
<td>Greece</td>
</tr>
<tr>
<td>GS</td>
<td>&nbsp;</td>
<td>South Georgia and the South Sandwich Islands</td>
</tr>
<tr>
<td>GT</td>
<td>&nbsp;</td>
<td>Guatemala</td>
</tr>
<tr>
<td>GU</td>
<td>&nbsp;</td>
<td>Guam (US)</td>
</tr>
<tr>
<td>GW</td>
<td>&nbsp;</td>
<td>Guinea Bissau</td>
</tr>
<tr>
<td>GY</td>
<td>&nbsp;</td>
<td>Guyana</td>
</tr>
<tr>
<td>HK</td>
<td>&nbsp;</td>
<td>Hong Kong</td>
</tr>
<tr>
<td>HM</td>
<td>&nbsp;</td>
<td>Heard &#038; McDonald Isl.</td>
</tr>
<tr>
<td>HN</td>
<td>&nbsp;</td>
<td>Honduras</td>
</tr>
<tr>
<td>HR</td>
<td>&nbsp;</td>
<td>Croatia</td>
</tr>
<tr>
<td>HT</td>
<td>&nbsp;</td>
<td>Haiti</td>
</tr>
<tr>
<td>HU</td>
<td>&nbsp;</td>
<td>Hungary</td>
</tr>
<tr>
<td>ID</td>
<td>&nbsp;</td>
<td>Indonesia</td>
</tr>
<tr>
<td>IE</td>
<td>&nbsp;</td>
<td>Ireland</td>
</tr>
<tr>
<td>IL</td>
<td>&nbsp;</td>
<td>Israel</td>
</tr>
<tr>
<td>IM</td>
<td>&nbsp;</td>
<td>Isle of Man</td>
</tr>
<tr>
<td>IN</td>
<td>&nbsp;</td>
<td>India</td>
</tr>
<tr>
<td>IO</td>
<td>&nbsp;</td>
<td>British Indian O. Terr.</td>
</tr>
<tr>
<td>IQ</td>
<td>&nbsp;</td>
<td>Iraq</td>
</tr>
<tr>
<td>IR</td>
<td>&nbsp;</td>
<td>Iran</td>
</tr>
<tr>
<td>IS</td>
<td>&nbsp;</td>
<td>Iceland</td>
</tr>
<tr>
<td>IT</td>
<td>&nbsp;</td>
<td>Italy</td>
</tr>
<tr>
<td>JM</td>
<td>&nbsp;</td>
<td>Jamaica</td>
</tr>
<tr>
<td>JO</td>
<td>&nbsp;</td>
<td>Jordan</td>
</tr>
<tr>
<td>JP</td>
<td>&nbsp;</td>
<td>Japan</td>
</tr>
<tr>
<td>KE</td>
<td>&nbsp;</td>
<td>Kenya</td>
</tr>
<tr>
<td>KG</td>
<td>&nbsp;</td>
<td>Kirgistan</td>
</tr>
<tr>
<td>KH</td>
<td>&nbsp;</td>
<td>Cambodia</td>
</tr>
<tr>
<td>KI</td>
<td>&nbsp;</td>
<td>Kiribati</td>
</tr>
<tr>
<td>KM</td>
<td>&nbsp;</td>
<td>Comoros</td>
</tr>
<tr>
<td>KN</td>
<td>&nbsp;</td>
<td>St.Kitts Nevis Anguilla</td>
</tr>
<tr>
<td>KP</td>
<td>&nbsp;</td>
<td>Korea (North)</td>
</tr>
<tr>
<td>KR</td>
<td>&nbsp;</td>
<td>Korea (South)</td>
</tr>
<tr>
<td>KW</td>
<td>&nbsp;</td>
<td>Kuwait</td>
</tr>
<tr>
<td>KY</td>
<td>&nbsp;</td>
<td>Cayman Islands</td>
</tr>
<tr>
<td>KZ</td>
<td>&nbsp;</td>
<td>Kazachstan</td>
</tr>
<tr>
<td>LA</td>
<td>&nbsp;</td>
<td>Laos</td>
</tr>
<tr>
<td>LB</td>
<td>&nbsp;</td>
<td>Lebanon</td>
</tr>
<tr>
<td>LC</td>
<td>&nbsp;</td>
<td>Saint Lucia</td>
</tr>
<tr>
<td>LI</td>
<td>&nbsp;</td>
<td>Liechtenstein</td>
</tr>
<tr>
<td>LK</td>
<td>&nbsp;</td>
<td>Sri Lanka</td>
</tr>
<tr>
<td>LR</td>
<td>&nbsp;</td>
<td>Liberia</td>
</tr>
<tr>
<td>LS</td>
<td>&nbsp;</td>
<td>Lesotho</td>
</tr>
<tr>
<td>LT</td>
<td>&nbsp;</td>
<td>Lithuania</td>
</tr>
<tr>
<td>LU</td>
<td>&nbsp;</td>
<td>Luxembourg</td>
</tr>
<tr>
<td>LV</td>
<td>&nbsp;</td>
<td>Latvia</td>
</tr>
<tr>
<td>LY</td>
<td>&nbsp;</td>
<td>Libya</td>
</tr>
<tr>
<td>MA</td>
<td>&nbsp;</td>
<td>Morocco</td>
</tr>
<tr>
<td>MC</td>
<td>&nbsp;</td>
<td>Monaco</td>
</tr>
<tr>
<td>MD</td>
<td>&nbsp;</td>
<td>Moldavia</td>
</tr>
<tr>
<td>MG</td>
<td>&nbsp;</td>
<td>Madagascar</td>
</tr>
<tr>
<td>MH</td>
<td>&nbsp;</td>
<td>Marshall Islands</td>
</tr>
<tr>
<td>MK</td>
<td>&nbsp;</td>
<td>Macedonia, The Former Yugoslav Republic of</td>
</tr>
<tr>
<td>ML</td>
<td>&nbsp;</td>
<td>Mali</td>
</tr>
<tr>
<td>MM</td>
<td>&nbsp;</td>
<td>Myanmar</td>
</tr>
<tr>
<td>MN</td>
<td>&nbsp;</td>
<td>Mongolia</td>
</tr>
<tr>
<td>MO</td>
<td>&nbsp;</td>
<td>Macau</td>
</tr>
<tr>
<td>MP</td>
<td>&nbsp;</td>
<td>Northern Mariana Isl.</td>
</tr>
<tr>
<td>MQ</td>
<td>&nbsp;</td>
<td>Martinique (Fr.)</td>
</tr>
<tr>
<td>MR</td>
<td>&nbsp;</td>
<td>Mauritania</td>
</tr>
<tr>
<td>MS</td>
<td>&nbsp;</td>
<td>Montserrat</td>
</tr>
<tr>
<td>MT</td>
<td>&nbsp;</td>
<td>Malta</td>
</tr>
<tr>
<td>MU</td>
<td>&nbsp;</td>
<td>Mauritius</td>
</tr>
<tr>
<td>MV</td>
<td>&nbsp;</td>
<td>Maldives</td>
</tr>
<tr>
<td>MW</td>
<td>&nbsp;</td>
<td>Malawi</td>
</tr>
<tr>
<td>MX</td>
<td>&nbsp;</td>
<td>Mexico</td>
</tr>
<tr>
<td>MY</td>
<td>&nbsp;</td>
<td>Malaysia</td>
</tr>
<tr>
<td>MZ</td>
<td>&nbsp;</td>
<td>Mozambique</td>
</tr>
<tr>
<td>NA</td>
<td>&nbsp;</td>
<td>Namibia</td>
</tr>
<tr>
<td>NC</td>
<td>&nbsp;</td>
<td>New Caledonia (Fr.)</td>
</tr>
<tr>
<td>NE</td>
<td>&nbsp;</td>
<td>Niger</td>
</tr>
<tr>
<td>NF</td>
<td>&nbsp;</td>
<td>Norfolk Island</td>
</tr>
<tr>
<td>NG</td>
<td>&nbsp;</td>
<td>Nigeria</td>
</tr>
<tr>
<td>NI</td>
<td>&nbsp;</td>
<td>Nicaragua</td>
</tr>
<tr>
<td>NL</td>
<td>&nbsp;</td>
<td>Netherlands</td>
</tr>
<tr>
<td>NO</td>
<td>&nbsp;</td>
<td>Norway</td>
</tr>
<tr>
<td>NP</td>
<td>&nbsp;</td>
<td>Nepal</td>
</tr>
<tr>
<td>NR</td>
<td>&nbsp;</td>
<td>Nauru</td>
</tr>
<tr>
<td>NU</td>
<td>&nbsp;</td>
<td>Niue</td>
</tr>
<tr>
<td>NZ</td>
<td>&nbsp;</td>
<td>New Zealand</td>
</tr>
<tr>
<td>OM</td>
<td>&nbsp;</td>
<td>Oman</td>
</tr>
<tr>
<td>PA</td>
<td>&nbsp;</td>
<td>Panama</td>
</tr>
<tr>
<td>PE</td>
<td>&nbsp;</td>
<td>Peru</td>
</tr>
<tr>
<td>PF</td>
<td>&nbsp;</td>
<td>Polynesia (Fr.)</td>
</tr>
<tr>
<td>PG</td>
<td>&nbsp;</td>
<td>Papua New Guinea</td>
</tr>
<tr>
<td>PH</td>
<td>&nbsp;</td>
<td>Philippines</td>
</tr>
<tr>
<td>PK</td>
<td>&nbsp;</td>
<td>Pakistan</td>
</tr>
<tr>
<td>PL</td>
<td>&nbsp;</td>
<td>Poland</td>
</tr>
<tr>
<td>PM</td>
<td>&nbsp;</td>
<td>St. Pierre &#038; Miquelon</td>
</tr>
<tr>
<td>PN</td>
<td>&nbsp;</td>
<td>Pitcairn</td>
</tr>
<tr>
<td>PR</td>
<td>&nbsp;</td>
<td>Puerto Rico (US)</td>
</tr>
<tr>
<td>PT</td>
<td>&nbsp;</td>
<td>Portugal</td>
</tr>
<tr>
<td>PW</td>
<td>&nbsp;</td>
<td>Palau</td>
</tr>
<tr>
<td>PY</td>
<td>&nbsp;</td>
<td>Paraguay</td>
</tr>
<tr>
<td>QA</td>
<td>&nbsp;</td>
<td>Qatar</td>
</tr>
<tr>
<td>RE</td>
<td>&nbsp;</td>
<td>Reunion (Fr.)</td>
</tr>
<tr>
<td>RO</td>
<td>&nbsp;</td>
<td>Romania</td>
</tr>
<tr>
<td>RU</td>
<td>&nbsp;</td>
<td>Russian Federation</td>
</tr>
<tr>
<td>RW</td>
<td>&nbsp;</td>
<td>Rwanda</td>
</tr>
<tr>
<td>SA</td>
<td>&nbsp;</td>
<td>Saudi Arabia</td>
</tr>
<tr>
<td>SB</td>
<td>&nbsp;</td>
<td>Solomon Islands</td>
</tr>
<tr>
<td>SC</td>
<td>&nbsp;</td>
<td>Seychelles</td>
</tr>
<tr>
<td>SD</td>
<td>&nbsp;</td>
<td>Sudan</td>
</tr>
<tr>
<td>SE</td>
<td>&nbsp;</td>
<td>Sweden</td>
</tr>
<tr>
<td>SG</td>
<td>&nbsp;</td>
<td>Singapore</td>
</tr>
<tr>
<td>SH</td>
<td>&nbsp;</td>
<td>St. Helena</td>
</tr>
<tr>
<td>SI</td>
<td>&nbsp;</td>
<td>Slovenia</td>
</tr>
<tr>
<td>SJ</td>
<td>&nbsp;</td>
<td>Svalbard &#038; Jan Mayen Islands</td>
</tr>
<tr>
<td>SK</td>
<td>&nbsp;</td>
<td>Slovak Republic</td>
</tr>
<tr>
<td>SL</td>
<td>&nbsp;</td>
<td>Sierra Leone</td>
</tr>
<tr>
<td>SM</td>
<td>&nbsp;</td>
<td>San Marino</td>
</tr>
<tr>
<td>SN</td>
<td>&nbsp;</td>
<td>Senegal</td>
</tr>
<tr>
<td>SO</td>
<td>&nbsp;</td>
<td>Somalia</td>
</tr>
<tr>
<td>SR</td>
<td>&nbsp;</td>
<td>Suriname</td>
</tr>
<tr>
<td>ST</td>
<td>&nbsp;</td>
<td>St. Tome and Principe</td>
</tr>
<tr>
<td>SV</td>
<td>&nbsp;</td>
<td>El Salvador</td>
</tr>
<tr>
<td>SY</td>
<td>&nbsp;</td>
<td>Syria</td>
</tr>
<tr>
<td>SZ</td>
<td>&nbsp;</td>
<td>Swaziland</td>
</tr>
<tr>
<td>TC</td>
<td>&nbsp;</td>
<td>Turks &#038; Caicos Islands</td>
</tr>
<tr>
<td>TD</td>
<td>&nbsp;</td>
<td>Chad</td>
</tr>
<tr>
<td>TF</td>
<td>&nbsp;</td>
<td>French Southern Terr.</td>
</tr>
<tr>
<td>TG</td>
<td>&nbsp;</td>
<td>Togo</td>
</tr>
<tr>
<td>TH</td>
<td>&nbsp;</td>
<td>Thailand</td>
</tr>
<tr>
<td>TJ</td>
<td>&nbsp;</td>
<td>Tadjikistan</td>
</tr>
<tr>
<td>TK</td>
<td>&nbsp;</td>
<td>Tokelau</td>
</tr>
<tr>
<td>TM</td>
<td>&nbsp;</td>
<td>Turkmenistan</td>
</tr>
<tr>
<td>TN</td>
<td>&nbsp;</td>
<td>Tunisia</td>
</tr>
<tr>
<td>TO</td>
<td>&nbsp;</td>
<td>Tonga</td>
</tr>
<tr>
<td>TP</td>
<td>&nbsp;</td>
<td>East Timor</td>
</tr>
<tr>
<td>TR</td>
<td>&nbsp;</td>
<td>Turkey</td>
</tr>
<tr>
<td>TT</td>
<td>&nbsp;</td>
<td>Trinidad &#038; Tobago</td>
</tr>
<tr>
<td>TV</td>
<td>&nbsp;</td>
<td>Tuvalu</td>
</tr>
<tr>
<td>TW</td>
<td>&nbsp;</td>
<td>Taiwan</td>
</tr>
<tr>
<td>TZ</td>
<td>&nbsp;</td>
<td>Tanzania</td>
</tr>
<tr>
<td>UA</td>
<td>&nbsp;</td>
<td>Ukraine</td>
</tr>
<tr>
<td>UG</td>
<td>&nbsp;</td>
<td>Uganda</td>
</tr>
<tr>
<td>UK</td>
<td>&nbsp;</td>
<td>United Kingdom</td>
</tr>
<tr>
<td>UM</td>
<td>&nbsp;</td>
<td>US Minor outlying Isl.</td>
</tr>
<tr>
<td>US</td>
<td>&nbsp;</td>
<td>United States</td>
</tr>
<tr>
<td>UY</td>
<td>&nbsp;</td>
<td>Uruguay</td>
</tr>
<tr>
<td>UZ</td>
<td>&nbsp;</td>
<td>Uzbekistan</td>
</tr>
<tr>
<td>VA</td>
<td>&nbsp;</td>
<td>Vatican City State</td>
</tr>
<tr>
<td>VC</td>
<td>&nbsp;</td>
<td>St.Vincent &#038; Grenadines</td>
</tr>
<tr>
<td>VE</td>
<td>&nbsp;</td>
<td>Venezuela</td>
</tr>
<tr>
<td>VG</td>
<td>&nbsp;</td>
<td>Virgin Islands (British)</td>
</tr>
<tr>
<td>VI</td>
<td>&nbsp;</td>
<td>Virgin Islands (US)</td>
</tr>
<tr>
<td>VN</td>
<td>&nbsp;</td>
<td>Vietnam</td>
</tr>
<tr>
<td>VU</td>
<td>&nbsp;</td>
<td>Vanuatu</td>
</tr>
<tr>
<td>WF</td>
<td>&nbsp;</td>
<td>Wallis &#038; Futuna Islands</td>
</tr>
<tr>
<td>WS</td>
<td>&nbsp;</td>
<td>Samoa</td>
</tr>
<tr>
<td>YE</td>
<td>&nbsp;</td>
<td>Yemen</td>
</tr>
<tr>
<td>YU</td>
<td>&nbsp;</td>
<td>Yugoslavia</td>
</tr>
<tr>
<td>ZA</td>
<td>&nbsp;</td>
<td>South Africa</td>
</tr>
<tr>
<td>ZM</td>
<td>&nbsp;</td>
<td>Zambia</td>
</tr>
<tr>
<td>ZR</td>
<td>&nbsp;</td>
<td>Zaire</td>
</tr>
<tr>
<td>ZW</td>
<td>&nbsp;</td>
<td>Zimbabwe</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
<td>
<table>
<tr>
<td>AF</td>
<td>&nbsp;</td>
<td>Afghanistan</td>
</tr>
<tr>
<td>AL</td>
<td>&nbsp;</td>
<td>Albania</td>
</tr>
<tr>
<td>DZ</td>
<td>&nbsp;</td>
<td>Algeria</td>
</tr>
<tr>
<td>AS</td>
<td>&nbsp;</td>
<td>American Samoa</td>
</tr>
<tr>
<td>AD</td>
<td>&nbsp;</td>
<td>Andorra</td>
</tr>
<tr>
<td>AO</td>
<td>&nbsp;</td>
<td>Angola</td>
</tr>
<tr>
<td>AI</td>
<td>&nbsp;</td>
<td>Anguilla</td>
</tr>
<tr>
<td>AQ</td>
<td>&nbsp;</td>
<td>Antarctica</td>
</tr>
<tr>
<td>AG</td>
<td>&nbsp;</td>
<td>Antigua and Barbuda</td>
</tr>
<tr>
<td>AR</td>
<td>&nbsp;</td>
<td>Argentina</td>
</tr>
<tr>
<td>AM</td>
<td>&nbsp;</td>
<td>Armenia</td>
</tr>
<tr>
<td>AW</td>
<td>&nbsp;</td>
<td>Aruba</td>
</tr>
<tr>
<td>AC</td>
<td>&nbsp;</td>
<td>Ascension Island</td>
</tr>
<tr>
<td>AU</td>
<td>&nbsp;</td>
<td>Australia</td>
</tr>
<tr>
<td>AT</td>
<td>&nbsp;</td>
<td>Austria</td>
</tr>
<tr>
<td>AZ</td>
<td>&nbsp;</td>
<td>Azerbaidjan</td>
</tr>
<tr>
<td>BS</td>
<td>&nbsp;</td>
<td>Bahamas</td>
</tr>
<tr>
<td>BH</td>
<td>&nbsp;</td>
<td>Bahrain</td>
</tr>
<tr>
<td>BD</td>
<td>&nbsp;</td>
<td>Bangladesh</td>
</tr>
<tr>
<td>BB</td>
<td>&nbsp;</td>
<td>Barbados</td>
</tr>
<tr>
<td>BY</td>
<td>&nbsp;</td>
<td>Belarus</td>
</tr>
<tr>
<td>BE</td>
<td>&nbsp;</td>
<td>Belgium</td>
</tr>
<tr>
<td>BZ</td>
<td>&nbsp;</td>
<td>Belize</td>
</tr>
<tr>
<td>BJ</td>
<td>&nbsp;</td>
<td>Benin</td>
</tr>
<tr>
<td>BM</td>
<td>&nbsp;</td>
<td>Bermuda</td>
</tr>
<tr>
<td>BO</td>
<td>&nbsp;</td>
<td>Bolivia</td>
</tr>
<tr>
<td>BA</td>
<td>&nbsp;</td>
<td>Bosnia-Herzegovina</td>
</tr>
<tr>
<td>BW</td>
<td>&nbsp;</td>
<td>Botswana</td>
</tr>
<tr>
<td>BV</td>
<td>&nbsp;</td>
<td>Bouvet Island</td>
</tr>
<tr>
<td>BR</td>
<td>&nbsp;</td>
<td>Brazil</td>
</tr>
<tr>
<td>IO</td>
<td>&nbsp;</td>
<td>British Indian O. Terr.</td>
</tr>
<tr>
<td>BN</td>
<td>&nbsp;</td>
<td>Brunei Darussalam</td>
</tr>
<tr>
<td>BG</td>
<td>&nbsp;</td>
<td>Bulgaria</td>
</tr>
<tr>
<td>BF</td>
<td>&nbsp;</td>
<td>Burkina Faso</td>
</tr>
<tr>
<td>BI</td>
<td>&nbsp;</td>
<td>Burundi</td>
</tr>
<tr>
<td>BT</td>
<td>&nbsp;</td>
<td>Buthan</td>
</tr>
<tr>
<td>KH</td>
<td>&nbsp;</td>
<td>Cambodia</td>
</tr>
<tr>
<td>CM</td>
<td>&nbsp;</td>
<td>Cameroon</td>
</tr>
<tr>
<td>CA</td>
<td>&nbsp;</td>
<td>Canada</td>
</tr>
<tr>
<td>CV</td>
<td>&nbsp;</td>
<td>Cape Verde</td>
</tr>
<tr>
<td>KY</td>
<td>&nbsp;</td>
<td>Cayman Islands</td>
</tr>
<tr>
<td>CF</td>
<td>&nbsp;</td>
<td>Central African Rep.</td>
</tr>
<tr>
<td>TD</td>
<td>&nbsp;</td>
<td>Chad</td>
</tr>
<tr>
<td>CL</td>
<td>&nbsp;</td>
<td>Chile</td>
</tr>
<tr>
<td>CN</td>
<td>&nbsp;</td>
<td>China</td>
</tr>
<tr>
<td>CX</td>
<td>&nbsp;</td>
<td>Christmas Island</td>
</tr>
<tr>
<td>CC</td>
<td>&nbsp;</td>
<td>Cocos (Keeling) Isl.</td>
</tr>
<tr>
<td>CO</td>
<td>&nbsp;</td>
<td>Colombia</td>
</tr>
<tr>
<td>KM</td>
<td>&nbsp;</td>
<td>Comoros</td>
</tr>
<tr>
<td>CG</td>
<td>&nbsp;</td>
<td>Congo, Republic of</td>
</tr>
<tr>
<td>CD</td>
<td>&nbsp;</td>
<td>Congo, The Democratic Republic of the</td>
</tr>
<tr>
<td>CK</td>
<td>&nbsp;</td>
<td>Cook Islands</td>
</tr>
<tr>
<td>CR</td>
<td>&nbsp;</td>
<td>Costa Rica</td>
</tr>
<tr>
<td>HR</td>
<td>&nbsp;</td>
<td>Croatia</td>
</tr>
<tr>
<td>CU</td>
<td>&nbsp;</td>
<td>Cuba</td>
</tr>
<tr>
<td>CY</td>
<td>&nbsp;</td>
<td>Cyprus</td>
</tr>
<tr>
<td>CZ</td>
<td>&nbsp;</td>
<td>Czech Republic</td>
</tr>
<tr>
<td>DK</td>
<td>&nbsp;</td>
<td>Denmark</td>
</tr>
<tr>
<td>DJ</td>
<td>&nbsp;</td>
<td>Djibouti</td>
</tr>
<tr>
<td>DM</td>
<td>&nbsp;</td>
<td>Dominica</td>
</tr>
<tr>
<td>DO</td>
<td>&nbsp;</td>
<td>Dominican Republic</td>
</tr>
<tr>
<td>TP</td>
<td>&nbsp;</td>
<td>East Timor</td>
</tr>
<tr>
<td>EC</td>
<td>&nbsp;</td>
<td>Ecuador</td>
</tr>
<tr>
<td>EG</td>
<td>&nbsp;</td>
<td>Egypt</td>
</tr>
<tr>
<td>SV</td>
<td>&nbsp;</td>
<td>El Salvador</td>
</tr>
<tr>
<td>GQ</td>
<td>&nbsp;</td>
<td>Equatorial Guinea</td>
</tr>
<tr>
<td>ER</td>
<td>&nbsp;</td>
<td>Eritrea</td>
</tr>
<tr>
<td>EE</td>
<td>&nbsp;</td>
<td>Estonia</td>
</tr>
<tr>
<td>ET</td>
<td>&nbsp;</td>
<td>Ethiopia</td>
</tr>
<tr>
<td>FK</td>
<td>&nbsp;</td>
<td>Falkland Isl.(Malvinas)</td>
</tr>
<tr>
<td>FO</td>
<td>&nbsp;</td>
<td>Faroe Islands</td>
</tr>
<tr>
<td>FJ</td>
<td>&nbsp;</td>
<td>Fiji</td>
</tr>
<tr>
<td>FI</td>
<td>&nbsp;</td>
<td>Finland</td>
</tr>
<tr>
<td>FR</td>
<td>&nbsp;</td>
<td>France</td>
</tr>
<tr>
<td>TF</td>
<td>&nbsp;</td>
<td>French Southern Terr.</td>
</tr>
<tr>
<td>GA</td>
<td>&nbsp;</td>
<td>Gabon</td>
</tr>
<tr>
<td>GM</td>
<td>&nbsp;</td>
<td>Gambia</td>
</tr>
<tr>
<td>GE</td>
<td>&nbsp;</td>
<td>Georgia</td>
</tr>
<tr>
<td>DE</td>
<td>&nbsp;</td>
<td>Germany</td>
</tr>
<tr>
<td>GH</td>
<td>&nbsp;</td>
<td>Ghana</td>
</tr>
<tr>
<td>GI</td>
<td>&nbsp;</td>
<td>Gibraltar</td>
</tr>
<tr>
<td>GB</td>
<td>&nbsp;</td>
<td>Great Britain (UK)</td>
</tr>
<tr>
<td>GR</td>
<td>&nbsp;</td>
<td>Greece</td>
</tr>
<tr>
<td>GL</td>
<td>&nbsp;</td>
<td>Greenland</td>
</tr>
<tr>
<td>GD</td>
<td>&nbsp;</td>
<td>Grenada</td>
</tr>
<tr>
<td>GP</td>
<td>&nbsp;</td>
<td>Guadeloupe (Fr.)</td>
</tr>
<tr>
<td>GU</td>
<td>&nbsp;</td>
<td>Guam (US)</td>
</tr>
<tr>
<td>GT</td>
<td>&nbsp;</td>
<td>Guatemala</td>
</tr>
<tr>
<td>GG</td>
<td>&nbsp;</td>
<td>Guernsey</td>
</tr>
<tr>
<td>GN</td>
<td>&nbsp;</td>
<td>Guinea</td>
</tr>
<tr>
<td>GW</td>
<td>&nbsp;</td>
<td>Guinea Bissau</td>
</tr>
<tr>
<td>GY</td>
<td>&nbsp;</td>
<td>Guyana</td>
</tr>
<tr>
<td>GF</td>
<td>&nbsp;</td>
<td>Guyana (Fr.)</td>
</tr>
<tr>
<td>HT</td>
<td>&nbsp;</td>
<td>Haiti</td>
</tr>
<tr>
<td>HM</td>
<td>&nbsp;</td>
<td>Heard &#038; McDonald Isl.</td>
</tr>
<tr>
<td>HN</td>
<td>&nbsp;</td>
<td>Honduras</td>
</tr>
<tr>
<td>HK</td>
<td>&nbsp;</td>
<td>Hong Kong</td>
</tr>
<tr>
<td>HU</td>
<td>&nbsp;</td>
<td>Hungary</td>
</tr>
<tr>
<td>IS</td>
<td>&nbsp;</td>
<td>Iceland</td>
</tr>
<tr>
<td>IN</td>
<td>&nbsp;</td>
<td>India</td>
</tr>
<tr>
<td>ID</td>
<td>&nbsp;</td>
<td>Indonesia</td>
</tr>
<tr>
<td>IR</td>
<td>&nbsp;</td>
<td>Iran</td>
</tr>
<tr>
<td>IQ</td>
<td>&nbsp;</td>
<td>Iraq</td>
</tr>
<tr>
<td>IE</td>
<td>&nbsp;</td>
<td>Ireland</td>
</tr>
<tr>
<td>IM</td>
<td>&nbsp;</td>
<td>Isle of Man</td>
</tr>
<tr>
<td>IL</td>
<td>&nbsp;</td>
<td>Israel</td>
</tr>
<tr>
<td>IT</td>
<td>&nbsp;</td>
<td>Italy</td>
</tr>
<tr>
<td>CI</td>
<td>&nbsp;</td>
<td>Ivory Coast</td>
</tr>
<tr>
<td>JM</td>
<td>&nbsp;</td>
<td>Jamaica</td>
</tr>
<tr>
<td>JP</td>
<td>&nbsp;</td>
<td>Japan</td>
</tr>
<tr>
<td>JO</td>
<td>&nbsp;</td>
<td>Jordan</td>
</tr>
<tr>
<td>KZ</td>
<td>&nbsp;</td>
<td>Kazachstan</td>
</tr>
<tr>
<td>KE</td>
<td>&nbsp;</td>
<td>Kenya</td>
</tr>
<tr>
<td>KG</td>
<td>&nbsp;</td>
<td>Kirgistan</td>
</tr>
<tr>
<td>KI</td>
<td>&nbsp;</td>
<td>Kiribati</td>
</tr>
<tr>
<td>KP</td>
<td>&nbsp;</td>
<td>Korea (North)</td>
</tr>
<tr>
<td>KR</td>
<td>&nbsp;</td>
<td>Korea (South)</td>
</tr>
<tr>
<td>KW</td>
<td>&nbsp;</td>
<td>Kuwait</td>
</tr>
<tr>
<td>LA</td>
<td>&nbsp;</td>
<td>Laos</td>
</tr>
<tr>
<td>LV</td>
<td>&nbsp;</td>
<td>Latvia</td>
</tr>
<tr>
<td>LB</td>
<td>&nbsp;</td>
<td>Lebanon</td>
</tr>
<tr>
<td>LS</td>
<td>&nbsp;</td>
<td>Lesotho</td>
</tr>
<tr>
<td>LR</td>
<td>&nbsp;</td>
<td>Liberia</td>
</tr>
<tr>
<td>LY</td>
<td>&nbsp;</td>
<td>Libya</td>
</tr>
<tr>
<td>LI</td>
<td>&nbsp;</td>
<td>Liechtenstein</td>
</tr>
<tr>
<td>LT</td>
<td>&nbsp;</td>
<td>Lithuania</td>
</tr>
<tr>
<td>LU</td>
<td>&nbsp;</td>
<td>Luxembourg</td>
</tr>
<tr>
<td>MO</td>
<td>&nbsp;</td>
<td>Macau</td>
</tr>
<tr>
<td>MK</td>
<td>&nbsp;</td>
<td>Macedonia, The Former Yugoslav Republic of</td>
</tr>
<tr>
<td>MG</td>
<td>&nbsp;</td>
<td>Madagascar</td>
</tr>
<tr>
<td>MW</td>
<td>&nbsp;</td>
<td>Malawi</td>
</tr>
<tr>
<td>MY</td>
<td>&nbsp;</td>
<td>Malaysia</td>
</tr>
<tr>
<td>MV</td>
<td>&nbsp;</td>
<td>Maldives</td>
</tr>
<tr>
<td>ML</td>
<td>&nbsp;</td>
<td>Mali</td>
</tr>
<tr>
<td>MT</td>
<td>&nbsp;</td>
<td>Malta</td>
</tr>
<tr>
<td>MH</td>
<td>&nbsp;</td>
<td>Marshall Islands</td>
</tr>
<tr>
<td>MQ</td>
<td>&nbsp;</td>
<td>Martinique (Fr.)</td>
</tr>
<tr>
<td>MR</td>
<td>&nbsp;</td>
<td>Mauritania</td>
</tr>
<tr>
<td>MU</td>
<td>&nbsp;</td>
<td>Mauritius</td>
</tr>
<tr>
<td>MX</td>
<td>&nbsp;</td>
<td>Mexico</td>
</tr>
<tr>
<td>FM</td>
<td>&nbsp;</td>
<td>Micronesia</td>
</tr>
<tr>
<td>MD</td>
<td>&nbsp;</td>
<td>Moldavia</td>
</tr>
<tr>
<td>MC</td>
<td>&nbsp;</td>
<td>Monaco</td>
</tr>
<tr>
<td>MN</td>
<td>&nbsp;</td>
<td>Mongolia</td>
</tr>
<tr>
<td>MS</td>
<td>&nbsp;</td>
<td>Montserrat</td>
</tr>
<tr>
<td>MA</td>
<td>&nbsp;</td>
<td>Morocco</td>
</tr>
<tr>
<td>MZ</td>
<td>&nbsp;</td>
<td>Mozambique</td>
</tr>
<tr>
<td>MM</td>
<td>&nbsp;</td>
<td>Myanmar</td>
</tr>
<tr>
<td>NA</td>
<td>&nbsp;</td>
<td>Namibia</td>
</tr>
<tr>
<td>NR</td>
<td>&nbsp;</td>
<td>Nauru</td>
</tr>
<tr>
<td>NP</td>
<td>&nbsp;</td>
<td>Nepal</td>
</tr>
<tr>
<td>AN</td>
<td>&nbsp;</td>
<td>Netherland Antilles</td>
</tr>
<tr>
<td>NL</td>
<td>&nbsp;</td>
<td>Netherlands</td>
</tr>
<tr>
<td>NC</td>
<td>&nbsp;</td>
<td>New Caledonia (Fr.)</td>
</tr>
<tr>
<td>NZ</td>
<td>&nbsp;</td>
<td>New Zealand</td>
</tr>
<tr>
<td>NI</td>
<td>&nbsp;</td>
<td>Nicaragua</td>
</tr>
<tr>
<td>NE</td>
<td>&nbsp;</td>
<td>Niger</td>
</tr>
<tr>
<td>NG</td>
<td>&nbsp;</td>
<td>Nigeria</td>
</tr>
<tr>
<td>NU</td>
<td>&nbsp;</td>
<td>Niue</td>
</tr>
<tr>
<td>NF</td>
<td>&nbsp;</td>
<td>Norfolk Island</td>
</tr>
<tr>
<td>MP</td>
<td>&nbsp;</td>
<td>Northern Mariana Isl.</td>
</tr>
<tr>
<td>NO</td>
<td>&nbsp;</td>
<td>Norway</td>
</tr>
<tr>
<td>OM</td>
<td>&nbsp;</td>
<td>Oman</td>
</tr>
<tr>
<td>PK</td>
<td>&nbsp;</td>
<td>Pakistan</td>
</tr>
<tr>
<td>PW</td>
<td>&nbsp;</td>
<td>Palau</td>
</tr>
<tr>
<td>PA</td>
<td>&nbsp;</td>
<td>Panama</td>
</tr>
<tr>
<td>PG</td>
<td>&nbsp;</td>
<td>Papua New Guinea</td>
</tr>
<tr>
<td>PY</td>
<td>&nbsp;</td>
<td>Paraguay</td>
</tr>
<tr>
<td>PE</td>
<td>&nbsp;</td>
<td>Peru</td>
</tr>
<tr>
<td>PH</td>
<td>&nbsp;</td>
<td>Philippines</td>
</tr>
<tr>
<td>PN</td>
<td>&nbsp;</td>
<td>Pitcairn</td>
</tr>
<tr>
<td>PL</td>
<td>&nbsp;</td>
<td>Poland</td>
</tr>
<tr>
<td>PF</td>
<td>&nbsp;</td>
<td>Polynesia (Fr.)</td>
</tr>
<tr>
<td>PT</td>
<td>&nbsp;</td>
<td>Portugal</td>
</tr>
<tr>
<td>PR</td>
<td>&nbsp;</td>
<td>Puerto Rico (US)</td>
</tr>
<tr>
<td>QA</td>
<td>&nbsp;</td>
<td>Qatar</td>
</tr>
<tr>
<td>RE</td>
<td>&nbsp;</td>
<td>Reunion (Fr.)</td>
</tr>
<tr>
<td>RO</td>
<td>&nbsp;</td>
<td>Romania</td>
</tr>
<tr>
<td>RU</td>
<td>&nbsp;</td>
<td>Russian Federation</td>
</tr>
<tr>
<td>RW</td>
<td>&nbsp;</td>
<td>Rwanda</td>
</tr>
<tr>
<td>LC</td>
<td>&nbsp;</td>
<td>Saint Lucia</td>
</tr>
<tr>
<td>WS</td>
<td>&nbsp;</td>
<td>Samoa</td>
</tr>
<tr>
<td>SM</td>
<td>&nbsp;</td>
<td>San Marino</td>
</tr>
<tr>
<td>SA</td>
<td>&nbsp;</td>
<td>Saudi Arabia</td>
</tr>
<tr>
<td>SN</td>
<td>&nbsp;</td>
<td>Senegal</td>
</tr>
<tr>
<td>CS</td>
<td>&nbsp;</td>
<td>Serbia and Montenegro</td>
</tr>
<tr>
<td>SC</td>
<td>&nbsp;</td>
<td>Seychelles</td>
</tr>
<tr>
<td>SL</td>
<td>&nbsp;</td>
<td>Sierra Leone</td>
</tr>
<tr>
<td>SG</td>
<td>&nbsp;</td>
<td>Singapore</td>
</tr>
<tr>
<td>SK</td>
<td>&nbsp;</td>
<td>Slovak Republic</td>
</tr>
<tr>
<td>SI</td>
<td>&nbsp;</td>
<td>Slovenia</td>
</tr>
<tr>
<td>SB</td>
<td>&nbsp;</td>
<td>Solomon Islands</td>
</tr>
<tr>
<td>SO</td>
<td>&nbsp;</td>
<td>Somalia</td>
</tr>
<tr>
<td>ZA</td>
<td>&nbsp;</td>
<td>South Africa</td>
</tr>
<tr>
<td>GS</td>
<td>&nbsp;</td>
<td>South Georgia and the South Sandwich Islands</td>
</tr>
<tr>
<td>ES</td>
<td>&nbsp;</td>
<td>Spain</td>
</tr>
<tr>
<td>LK</td>
<td>&nbsp;</td>
<td>Sri Lanka</td>
</tr>
<tr>
<td>SH</td>
<td>&nbsp;</td>
<td>St. Helena</td>
</tr>
<tr>
<td>PM</td>
<td>&nbsp;</td>
<td>St. Pierre &#038; Miquelon</td>
</tr>
<tr>
<td>ST</td>
<td>&nbsp;</td>
<td>St. Tome and Principe</td>
</tr>
<tr>
<td>KN</td>
<td>&nbsp;</td>
<td>St.Kitts Nevis Anguilla</td>
</tr>
<tr>
<td>VC</td>
<td>&nbsp;</td>
<td>St.Vincent &#038; Grenadines</td>
</tr>
<tr>
<td>SD</td>
<td>&nbsp;</td>
<td>Sudan</td>
</tr>
<tr>
<td>SR</td>
<td>&nbsp;</td>
<td>Suriname</td>
</tr>
<tr>
<td>SJ</td>
<td>&nbsp;</td>
<td>Svalbard &#038; Jan Mayen Islands</td>
</tr>
<tr>
<td>SZ</td>
<td>&nbsp;</td>
<td>Swaziland</td>
</tr>
<tr>
<td>SE</td>
<td>&nbsp;</td>
<td>Sweden</td>
</tr>
<tr>
<td>CH</td>
<td>&nbsp;</td>
<td>Switzerland</td>
</tr>
<tr>
<td>SY</td>
<td>&nbsp;</td>
<td>Syria</td>
</tr>
<tr>
<td>TJ</td>
<td>&nbsp;</td>
<td>Tadjikistan</td>
</tr>
<tr>
<td>TW</td>
<td>&nbsp;</td>
<td>Taiwan</td>
</tr>
<tr>
<td>TZ</td>
<td>&nbsp;</td>
<td>Tanzania</td>
</tr>
<tr>
<td>TH</td>
<td>&nbsp;</td>
<td>Thailand</td>
</tr>
<tr>
<td>TG</td>
<td>&nbsp;</td>
<td>Togo</td>
</tr>
<tr>
<td>TK</td>
<td>&nbsp;</td>
<td>Tokelau</td>
</tr>
<tr>
<td>TO</td>
<td>&nbsp;</td>
<td>Tonga</td>
</tr>
<tr>
<td>TT</td>
<td>&nbsp;</td>
<td>Trinidad &#038; Tobago</td>
</tr>
<tr>
<td>TN</td>
<td>&nbsp;</td>
<td>Tunisia</td>
</tr>
<tr>
<td>TR</td>
<td>&nbsp;</td>
<td>Turkey</td>
</tr>
<tr>
<td>TM</td>
<td>&nbsp;</td>
<td>Turkmenistan</td>
</tr>
<tr>
<td>TC</td>
<td>&nbsp;</td>
<td>Turks &#038; Caicos Islands</td>
</tr>
<tr>
<td>TV</td>
<td>&nbsp;</td>
<td>Tuvalu</td>
</tr>
<tr>
<td>UM</td>
<td>&nbsp;</td>
<td>US Minor outlying Isl.</td>
</tr>
<tr>
<td>UG</td>
<td>&nbsp;</td>
<td>Uganda</td>
</tr>
<tr>
<td>UA</td>
<td>&nbsp;</td>
<td>Ukraine</td>
</tr>
<tr>
<td>AE</td>
<td>&nbsp;</td>
<td>United Arab Emirates</td>
</tr>
<tr>
<td>UK</td>
<td>&nbsp;</td>
<td>United Kingdom</td>
</tr>
<tr>
<td>US</td>
<td>&nbsp;</td>
<td>United States</td>
</tr>
<tr>
<td>UY</td>
<td>&nbsp;</td>
<td>Uruguay</td>
</tr>
<tr>
<td>UZ</td>
<td>&nbsp;</td>
<td>Uzbekistan</td>
</tr>
<tr>
<td>VU</td>
<td>&nbsp;</td>
<td>Vanuatu</td>
</tr>
<tr>
<td>VA</td>
<td>&nbsp;</td>
<td>Vatican City State</td>
</tr>
<tr>
<td>VE</td>
<td>&nbsp;</td>
<td>Venezuela</td>
</tr>
<tr>
<td>VN</td>
<td>&nbsp;</td>
<td>Vietnam</td>
</tr>
<tr>
<td>VG</td>
<td>&nbsp;</td>
<td>Virgin Islands (British)</td>
</tr>
<tr>
<td>VI</td>
<td>&nbsp;</td>
<td>Virgin Islands (US)</td>
</tr>
<tr>
<td>WF</td>
<td>&nbsp;</td>
<td>Wallis &#038; Futuna Islands</td>
</tr>
<tr>
<td>EH</td>
<td>&nbsp;</td>
<td>Western Sahara</td>
</tr>
<tr>
<td>YE</td>
<td>&nbsp;</td>
<td>Yemen</td>
</tr>
<tr>
<td>YU</td>
<td>&nbsp;</td>
<td>Yugoslavia</td>
</tr>
<tr>
<td>ZR</td>
<td>&nbsp;</td>
<td>Zaire</td>
</tr>
<tr>
<td>ZM</td>
<td>&nbsp;</td>
<td>Zambia</td>
</tr>
<tr>
<td>ZW</td>
<td>&nbsp;</td>
<td>Zimbabwe</td>
</tr>
</table>
</td>
</tr>
</table>
<p>HTML Country Select Input with United States Selected:</p>
<pre><code>&lt;select name="country"&gt;
&lt;option value="AF"&gt;Afghanistan&lt;/option&gt;
&lt;option value="AX"&gt;ÅLand Islands&lt;/option&gt;
&lt;option value="AL"&gt;Albania&lt;/option&gt;
&lt;option value="DZ"&gt;Algeria&lt;/option&gt;
&lt;option value="AS"&gt;American Samoa&lt;/option&gt;
&lt;option value="AD"&gt;Andorra&lt;/option&gt;
&lt;option value="AO"&gt;Angola&lt;/option&gt;
&lt;option value="AI"&gt;Anguilla&lt;/option&gt;
&lt;option value="AQ"&gt;Antarctica&lt;/option&gt;
&lt;option value="AG"&gt;Antigua And Barbuda&lt;/option&gt;
&lt;option value="AR"&gt;Argentina&lt;/option&gt;
&lt;option value="AM"&gt;Armenia&lt;/option&gt;
&lt;option value="AW"&gt;Aruba&lt;/option&gt;
&lt;option value="AU"&gt;Australia&lt;/option&gt;
&lt;option value="AT"&gt;Austria&lt;/option&gt;
&lt;option value="AZ"&gt;Azerbaijan&lt;/option&gt;
&lt;option value="BS"&gt;Bahamas&lt;/option&gt;
&lt;option value="BH"&gt;Bahrain&lt;/option&gt;
&lt;option value="BD"&gt;Bangladesh&lt;/option&gt;
&lt;option value="BB"&gt;Barbados&lt;/option&gt;
&lt;option value="BY"&gt;Belarus&lt;/option&gt;
&lt;option value="BE"&gt;Belgium&lt;/option&gt;
&lt;option value="BZ"&gt;Belize&lt;/option&gt;
&lt;option value="BJ"&gt;Benin&lt;/option&gt;
&lt;option value="BM"&gt;Bermuda&lt;/option&gt;
&lt;option value="BT"&gt;Bhutan&lt;/option&gt;
&lt;option value="BO"&gt;Bolivia&lt;/option&gt;
&lt;option value="BA"&gt;Bosnia And Herzegovina&lt;/option&gt;
&lt;option value="BW"&gt;Botswana&lt;/option&gt;
&lt;option value="BV"&gt;Bouvet Island&lt;/option&gt;
&lt;option value="BR"&gt;Brazil&lt;/option&gt;
&lt;option value="IO"&gt;British Indian Ocean Territory&lt;/option&gt;
&lt;option value="BN"&gt;Brunei Darussalam&lt;/option&gt;
&lt;option value="BG"&gt;Bulgaria&lt;/option&gt;
&lt;option value="BF"&gt;Burkina Faso&lt;/option&gt;
&lt;option value="BI"&gt;Burundi&lt;/option&gt;
&lt;option value="KH"&gt;Cambodia&lt;/option&gt;
&lt;option value="CM"&gt;Cameroon&lt;/option&gt;
&lt;option value="CA"&gt;Canada&lt;/option&gt;
&lt;option value="CV"&gt;Cape Verde&lt;/option&gt;
&lt;option value="KY"&gt;Cayman Islands&lt;/option&gt;
&lt;option value="CF"&gt;Central African Republic&lt;/option&gt;
&lt;option value="TD"&gt;Chad&lt;/option&gt;
&lt;option value="CL"&gt;Chile&lt;/option&gt;
&lt;option value="CN"&gt;China&lt;/option&gt;
&lt;option value="CX"&gt;Christmas Island&lt;/option&gt;
&lt;option value="CC"&gt;Cocos (Keeling) Islands&lt;/option&gt;
&lt;option value="CO"&gt;Colombia&lt;/option&gt;
&lt;option value="KM"&gt;Comoros&lt;/option&gt;
&lt;option value="CG"&gt;Congo&lt;/option&gt;
&lt;option value="CD"&gt;Congo, The Democratic Republic Of The&lt;/option&gt;
&lt;option value="CK"&gt;Cook Islands&lt;/option&gt;
&lt;option value="CR"&gt;Costa Rica&lt;/option&gt;
&lt;option value="CI"&gt;Cote D'Ivoire&lt;/option&gt;
&lt;option value="HR"&gt;Croatia&lt;/option&gt;
&lt;option value="CU"&gt;Cuba&lt;/option&gt;
&lt;option value="CY"&gt;Cyprus&lt;/option&gt;
&lt;option value="CZ"&gt;Czech Republic&lt;/option&gt;
&lt;option value="DK"&gt;Denmark&lt;/option&gt;
&lt;option value="DJ"&gt;Djibouti&lt;/option&gt;
&lt;option value="DM"&gt;Dominica&lt;/option&gt;
&lt;option value="DO"&gt;Dominican Republic&lt;/option&gt;
&lt;option value="EC"&gt;Ecuador&lt;/option&gt;
&lt;option value="EG"&gt;Egypt&lt;/option&gt;
&lt;option value="SV"&gt;El Salvador&lt;/option&gt;
&lt;option value="GQ"&gt;Equatorial Guinea&lt;/option&gt;
&lt;option value="ER"&gt;Eritrea&lt;/option&gt;
&lt;option value="EE"&gt;Estonia&lt;/option&gt;
&lt;option value="ET"&gt;Ethiopia&lt;/option&gt;
&lt;option value="FK"&gt;Falkland Islands (Malvinas)&lt;/option&gt;
&lt;option value="FO"&gt;Faroe Islands&lt;/option&gt;
&lt;option value="FJ"&gt;Fiji&lt;/option&gt;
&lt;option value="FI"&gt;Finland&lt;/option&gt;
&lt;option value="FR"&gt;France&lt;/option&gt;
&lt;option value="GF"&gt;French Guiana&lt;/option&gt;
&lt;option value="PF"&gt;French Polynesia&lt;/option&gt;
&lt;option value="TF"&gt;French Southern Territories&lt;/option&gt;
&lt;option value="GA"&gt;Gabon&lt;/option&gt;
&lt;option value="GM"&gt;Gambia&lt;/option&gt;
&lt;option value="GE"&gt;Georgia&lt;/option&gt;
&lt;option value="DE"&gt;Germany&lt;/option&gt;
&lt;option value="GH"&gt;Ghana&lt;/option&gt;
&lt;option value="GI"&gt;Gibraltar&lt;/option&gt;
&lt;option value="GR"&gt;Greece&lt;/option&gt;
&lt;option value="GL"&gt;Greenland&lt;/option&gt;
&lt;option value="GD"&gt;Grenada&lt;/option&gt;
&lt;option value="GP"&gt;Guadeloupe&lt;/option&gt;
&lt;option value="GU"&gt;Guam&lt;/option&gt;
&lt;option value="GT"&gt;Guatemala&lt;/option&gt;
&lt;option value="GG"&gt;Guernsey&lt;/option&gt;
&lt;option value="GN"&gt;Guinea&lt;/option&gt;
&lt;option value="GW"&gt;Guinea-Bissau&lt;/option&gt;
&lt;option value="GY"&gt;Guyana&lt;/option&gt;
&lt;option value="HT"&gt;Haiti&lt;/option&gt;
&lt;option value="HM"&gt;Heard Island And Mcdonald Islands&lt;/option&gt;
&lt;option value="VA"&gt;Holy See (Vatican City State)&lt;/option&gt;
&lt;option value="HN"&gt;Honduras&lt;/option&gt;
&lt;option value="HK"&gt;Hong Kong&lt;/option&gt;
&lt;option value="HU"&gt;Hungary&lt;/option&gt;
&lt;option value="IS"&gt;Iceland&lt;/option&gt;
&lt;option value="IN"&gt;India&lt;/option&gt;
&lt;option value="ID"&gt;Indonesia&lt;/option&gt;
&lt;option value="IR"&gt;Iran, Islamic Republic Of&lt;/option&gt;
&lt;option value="IQ"&gt;Iraq&lt;/option&gt;
&lt;option value="IE"&gt;Ireland&lt;/option&gt;
&lt;option value="IM"&gt;Isle Of Man&lt;/option&gt;
&lt;option value="IL"&gt;Israel&lt;/option&gt;
&lt;option value="IT"&gt;Italy&lt;/option&gt;
&lt;option value="JM"&gt;Jamaica&lt;/option&gt;
&lt;option value="JP"&gt;Japan&lt;/option&gt;
&lt;option value="JE"&gt;Jersey&lt;/option&gt;
&lt;option value="JO"&gt;Jordan&lt;/option&gt;
&lt;option value="KZ"&gt;Kazakhstan&lt;/option&gt;
&lt;option value="KE"&gt;Kenya&lt;/option&gt;
&lt;option value="KI"&gt;Kiribati&lt;/option&gt;
&lt;option value="KP"&gt;Korea, Democratic People'S Republic Of&lt;/option&gt;
&lt;option value="KR"&gt;Korea, Republic Of&lt;/option&gt;
&lt;option value="KW"&gt;Kuwait&lt;/option&gt;
&lt;option value="KG"&gt;Kyrgyzstan&lt;/option&gt;
&lt;option value="LA"&gt;Lao People'S Democratic Republic&lt;/option&gt;
&lt;option value="LV"&gt;Latvia&lt;/option&gt;
&lt;option value="LB"&gt;Lebanon&lt;/option&gt;
&lt;option value="LS"&gt;Lesotho&lt;/option&gt;
&lt;option value="LR"&gt;Liberia&lt;/option&gt;
&lt;option value="LY"&gt;Libyan Arab Jamahiriya&lt;/option&gt;
&lt;option value="LI"&gt;Liechtenstein&lt;/option&gt;
&lt;option value="LT"&gt;Lithuania&lt;/option&gt;
&lt;option value="LU"&gt;Luxembourg&lt;/option&gt;
&lt;option value="MO"&gt;Macao&lt;/option&gt;
&lt;option value="MK"&gt;Macedonia, The Former Yugoslav Republic Of&lt;/option&gt;
&lt;option value="MG"&gt;Madagascar&lt;/option&gt;
&lt;option value="MW"&gt;Malawi&lt;/option&gt;
&lt;option value="MY"&gt;Malaysia&lt;/option&gt;
&lt;option value="MV"&gt;Maldives&lt;/option&gt;
&lt;option value="ML"&gt;Mali&lt;/option&gt;
&lt;option value="MT"&gt;Malta&lt;/option&gt;
&lt;option value="MH"&gt;Marshall Islands&lt;/option&gt;
&lt;option value="MQ"&gt;Martinique&lt;/option&gt;
&lt;option value="MR"&gt;Mauritania&lt;/option&gt;
&lt;option value="MU"&gt;Mauritius&lt;/option&gt;
&lt;option value="YT"&gt;Mayotte&lt;/option&gt;
&lt;option value="MX"&gt;Mexico&lt;/option&gt;
&lt;option value="FM"&gt;Micronesia, Federated States Of&lt;/option&gt;
&lt;option value="MD"&gt;Moldova, Republic Of&lt;/option&gt;
&lt;option value="MC"&gt;Monaco&lt;/option&gt;
&lt;option value="MN"&gt;Mongolia&lt;/option&gt;
&lt;option value="MS"&gt;Montserrat&lt;/option&gt;
&lt;option value="MA"&gt;Morocco&lt;/option&gt;
&lt;option value="MZ"&gt;Mozambique&lt;/option&gt;
&lt;option value="MM"&gt;Myanmar&lt;/option&gt;
&lt;option value="NA"&gt;Namibia&lt;/option&gt;
&lt;option value="NR"&gt;Nauru&lt;/option&gt;
&lt;option value="NP"&gt;Nepal&lt;/option&gt;
&lt;option value="NL"&gt;Netherlands&lt;/option&gt;
&lt;option value="AN"&gt;Netherlands Antilles&lt;/option&gt;
&lt;option value="NC"&gt;New Caledonia&lt;/option&gt;
&lt;option value="NZ"&gt;New Zealand&lt;/option&gt;
&lt;option value="NI"&gt;Nicaragua&lt;/option&gt;
&lt;option value="NE"&gt;Niger&lt;/option&gt;
&lt;option value="NG"&gt;Nigeria&lt;/option&gt;
&lt;option value="NU"&gt;Niue&lt;/option&gt;
&lt;option value="NF"&gt;Norfolk Island&lt;/option&gt;
&lt;option value="MP"&gt;Northern Mariana Islands&lt;/option&gt;
&lt;option value="NO"&gt;Norway&lt;/option&gt;
&lt;option value="OM"&gt;Oman&lt;/option&gt;
&lt;option value="PK"&gt;Pakistan&lt;/option&gt;
&lt;option value="PW"&gt;Palau&lt;/option&gt;
&lt;option value="PS"&gt;Palestinian Territory, Occupied&lt;/option&gt;
&lt;option value="PA"&gt;Panama&lt;/option&gt;
&lt;option value="PG"&gt;Papua New Guinea&lt;/option&gt;
&lt;option value="PY"&gt;Paraguay&lt;/option&gt;
&lt;option value="PE"&gt;Peru&lt;/option&gt;
&lt;option value="PH"&gt;Philippines&lt;/option&gt;
&lt;option value="PN"&gt;Pitcairn&lt;/option&gt;
&lt;option value="PL"&gt;Poland&lt;/option&gt;
&lt;option value="PT"&gt;Portugal&lt;/option&gt;
&lt;option value="PR"&gt;Puerto Rico&lt;/option&gt;
&lt;option value="QA"&gt;Qatar&lt;/option&gt;
&lt;option value="RE"&gt;Reunion&lt;/option&gt;
&lt;option value="RO"&gt;Romania&lt;/option&gt;
&lt;option value="RU"&gt;Russian Federation&lt;/option&gt;
&lt;option value="RW"&gt;Rwanda&lt;/option&gt;
&lt;option value="SH"&gt;Saint Helena&lt;/option&gt;
&lt;option value="KN"&gt;Saint Kitts And Nevis&lt;/option&gt;
&lt;option value="LC"&gt;Saint Lucia&lt;/option&gt;
&lt;option value="PM"&gt;Saint Pierre And Miquelon&lt;/option&gt;
&lt;option value="VC"&gt;Saint Vincent And The Grenadines&lt;/option&gt;
&lt;option value="WS"&gt;Samoa&lt;/option&gt;
&lt;option value="SM"&gt;San Marino&lt;/option&gt;
&lt;option value="ST"&gt;Sao Tome And Principe&lt;/option&gt;
&lt;option value="SA"&gt;Saudi Arabia&lt;/option&gt;
&lt;option value="SN"&gt;Senegal&lt;/option&gt;
&lt;option value="CS"&gt;Serbia And Montenegro&lt;/option&gt;
&lt;option value="SC"&gt;Seychelles&lt;/option&gt;
&lt;option value="SL"&gt;Sierra Leone&lt;/option&gt;
&lt;option value="SG"&gt;Singapore&lt;/option&gt;
&lt;option value="SK"&gt;Slovakia&lt;/option&gt;
&lt;option value="SI"&gt;Slovenia&lt;/option&gt;
&lt;option value="SB"&gt;Solomon Islands&lt;/option&gt;
&lt;option value="SO"&gt;Somalia&lt;/option&gt;
&lt;option value="ZA"&gt;South Africa&lt;/option&gt;
&lt;option value="GS"&gt;South Georgia And The South Sandwich Islands&lt;/option&gt;
&lt;option value="ES"&gt;Spain&lt;/option&gt;
&lt;option value="LK"&gt;Sri Lanka&lt;/option&gt;
&lt;option value="SD"&gt;Sudan&lt;/option&gt;
&lt;option value="SR"&gt;Suriname&lt;/option&gt;
&lt;option value="SJ"&gt;Svalbard And Jan Mayen&lt;/option&gt;
&lt;option value="SZ"&gt;Swaziland&lt;/option&gt;
&lt;option value="SE"&gt;Sweden&lt;/option&gt;
&lt;option value="CH"&gt;Switzerland&lt;/option&gt;
&lt;option value="SY"&gt;Syrian Arab Republic&lt;/option&gt;
&lt;option value="TW"&gt;Taiwan, Province Of China&lt;/option&gt;
&lt;option value="TJ"&gt;Tajikistan&lt;/option&gt;
&lt;option value="TZ"&gt;Tanzania, United Republic Of&lt;/option&gt;
&lt;option value="TH"&gt;Thailand&lt;/option&gt;
&lt;option value="TL"&gt;Timor-Leste&lt;/option&gt;
&lt;option value="TG"&gt;Togo&lt;/option&gt;
&lt;option value="TK"&gt;Tokelau&lt;/option&gt;
&lt;option value="TO"&gt;Tonga&lt;/option&gt;
&lt;option value="TT"&gt;Trinidad And Tobago&lt;/option&gt;
&lt;option value="TN"&gt;Tunisia&lt;/option&gt;
&lt;option value="TR"&gt;Turkey&lt;/option&gt;
&lt;option value="TM"&gt;Turkmenistan&lt;/option&gt;
&lt;option value="TC"&gt;Turks And Caicos Islands&lt;/option&gt;
&lt;option value="TV"&gt;Tuvalu&lt;/option&gt;
&lt;option value="UG"&gt;Uganda&lt;/option&gt;
&lt;option value="UA"&gt;Ukraine&lt;/option&gt;
&lt;option value="AE"&gt;United Arab Emirates&lt;/option&gt;
&lt;option value="GB"&gt;United Kingdom&lt;/option&gt;
&lt;option selected="selected" value="US"&gt;United States&lt;/option&gt;
&lt;option value="UM"&gt;United States Minor Outlying Islands&lt;/option&gt;
&lt;option value="UY"&gt;Uruguay&lt;/option&gt;
&lt;option value="UZ"&gt;Uzbekistan&lt;/option&gt;
&lt;option value="VU"&gt;Vanuatu&lt;/option&gt;
&lt;option value="VE"&gt;Venezuela&lt;/option&gt;
&lt;option value="VN"&gt;Viet Nam&lt;/option&gt;
&lt;option value="VG"&gt;Virgin Islands, British&lt;/option&gt;
&lt;option value="VI"&gt;Virgin Islands, U.S.&lt;/option&gt;
&lt;option value="WF"&gt;Wallis And Futuna&lt;/option&gt;
&lt;option value="EH"&gt;Western Sahara&lt;/option&gt;
&lt;option value="YE"&gt;Yemen&lt;/option&gt;
&lt;option value="ZM"&gt;Zambia&lt;/option&gt;
&lt;option value="ZW"&gt;Zimbabwe&lt;/option&gt;
  &lt;/select&gt;</code>
</pre>
<p>Lastly, the most time consuming part for me was writing the PHP IF statements for each country so that if a user has a specific country chosen and saved in the database country field, it selects that country so it defaults in the drop-down. There are many ways to do this, but regardless of which way you use, it needs to be done otherwise each time your site user goes to edit their profile, they&#8217;ll have to select their country from the drop down. This can get tedious and annoying for your members. Even though you can copy and paste all the IF statements, you&#8217;d still have to manually type in each country abbreviation to check them against the databases $country variable. So here&#8217;s the code I decided to use&#8230;</p>
<p>PHP Edit Page Country Code Select Input:</p>
<pre><code>&lt;select name="country"&gt;
&lt;option value="AF" &lt;?php if($country == 'AF') { echo 'selected="selected"'; } ?&gt;&gt;Afghanistan&lt;/option&gt;
&lt;option value="AX" &lt;?php if($country == 'AX') { echo 'selected="selected"'; } ?&gt;&gt;ÅLand Islands&lt;/option&gt;
&lt;option value="AL" &lt;?php if($country == 'AL') { echo 'selected="selected"'; } ?&gt;&gt;Albania&lt;/option&gt;
&lt;option value="DZ" &lt;?php if($country == 'DZ') { echo 'selected="selected"'; } ?&gt;&gt;Algeria&lt;/option&gt;
&lt;option value="AS" &lt;?php if($country == 'AS') { echo 'selected="selected"'; } ?&gt;&gt;American Samoa&lt;/option&gt;
&lt;option value="AD" &lt;?php if($country == 'AD') { echo 'selected="selected"'; } ?&gt;&gt;Andorra&lt;/option&gt;
&lt;option value="AO" &lt;?php if($country == 'AO') { echo 'selected="selected"'; } ?&gt;&gt;Angola&lt;/option&gt;
&lt;option value="AI" &lt;?php if($country == 'AI') { echo 'selected="selected"'; } ?&gt;&gt;Anguilla&lt;/option&gt;
&lt;option value="AQ" &lt;?php if($country == 'AQ') { echo 'selected="selected"'; } ?&gt;&gt;Antarctica&lt;/option&gt;
&lt;option value="AG" &lt;?php if($country == 'AG') { echo 'selected="selected"'; } ?&gt;&gt;Antigua And Barbuda&lt;/option&gt;
&lt;option value="AR" &lt;?php if($country == 'AR') { echo 'selected="selected"'; } ?&gt;&gt;Argentina&lt;/option&gt;
&lt;option value="AM" &lt;?php if($country == 'AN') { echo 'selected="selected"'; } ?&gt;&gt;Armenia&lt;/option&gt;
&lt;option value="AW" &lt;?php if($country == 'AW') { echo 'selected="selected"'; } ?&gt;&gt;Aruba&lt;/option&gt;
&lt;option value="AU" &lt;?php if($country == 'AU') { echo 'selected="selected"'; } ?&gt;&gt;Australia&lt;/option&gt;
&lt;option value="AT" &lt;?php if($country == 'AT') { echo 'selected="selected"'; } ?&gt;&gt;Austria&lt;/option&gt;
&lt;option value="AZ" &lt;?php if($country == 'AZ') { echo 'selected="selected"'; } ?&gt;&gt;Azerbaijan&lt;/option&gt;
&lt;option value="BS" &lt;?php if($country == 'BS') { echo 'selected="selected"'; } ?&gt;&gt;Bahamas&lt;/option&gt;
&lt;option value="BH" &lt;?php if($country == 'BH') { echo 'selected="selected"'; } ?&gt;&gt;Bahrain&lt;/option&gt;
&lt;option value="BD" &lt;?php if($country == 'BD') { echo 'selected="selected"'; } ?&gt;&gt;Bangladesh&lt;/option&gt;
&lt;option value="BB" &lt;?php if($country == 'BB') { echo 'selected="selected"'; } ?&gt;&gt;Barbados&lt;/option&gt;
&lt;option value="BY" &lt;?php if($country == 'BY') { echo 'selected="selected"'; } ?&gt;&gt;Belarus&lt;/option&gt;
&lt;option value="BE" &lt;?php if($country == 'BE') { echo 'selected="selected"'; } ?&gt;&gt;Belgium&lt;/option&gt;
&lt;option value="BZ" &lt;?php if($country == 'BZ') { echo 'selected="selected"'; } ?&gt;&gt;Belize&lt;/option&gt;
&lt;option value="BJ" &lt;?php if($country == 'BJ') { echo 'selected="selected"'; } ?&gt;&gt;Benin&lt;/option&gt;
&lt;option value="BM" &lt;?php if($country == 'BM') { echo 'selected="selected"'; } ?&gt;&gt;Bermuda&lt;/option&gt;
&lt;option value="BT" &lt;?php if($country == 'BT') { echo 'selected="selected"'; } ?&gt;&gt;Bhutan&lt;/option&gt;
&lt;option value="BO" &lt;?php if($country == 'BO') { echo 'selected="selected"'; } ?&gt;&gt;Bolivia&lt;/option&gt;
&lt;option value="BA" &lt;?php if($country == 'BA') { echo 'selected="selected"'; } ?&gt;&gt;Bosnia And Herzegovina&lt;/option&gt;
&lt;option value="BW" &lt;?php if($country == 'BW') { echo 'selected="selected"'; } ?&gt;&gt;Botswana&lt;/option&gt;
&lt;option value="BV" &lt;?php if($country == 'BV') { echo 'selected="selected"'; } ?&gt;&gt;Bouvet Island&lt;/option&gt;
&lt;option value="BR" &lt;?php if($country == 'BR') { echo 'selected="selected"'; } ?&gt;&gt;Brazil&lt;/option&gt;
&lt;option value="IO" &lt;?php if($country == 'IO') { echo 'selected="selected"'; } ?&gt;&gt;British Indian Ocean Territory&lt;/option&gt;
&lt;option value="BN" &lt;?php if($country == 'BN') { echo 'selected="selected"'; } ?&gt;&gt;Brunei Darussalam&lt;/option&gt;
&lt;option value="BG" &lt;?php if($country == 'BG') { echo 'selected="selected"'; } ?&gt;&gt;Bulgaria&lt;/option&gt;
&lt;option value="BF" &lt;?php if($country == 'BF') { echo 'selected="selected"'; } ?&gt;&gt;Burkina Faso&lt;/option&gt;
&lt;option value="BI" &lt;?php if($country == 'BI') { echo 'selected="selected"'; } ?&gt;&gt;Burundi&lt;/option&gt;
&lt;option value="KH" &lt;?php if($country == 'KH') { echo 'selected="selected"'; } ?&gt;&gt;Cambodia&lt;/option&gt;
&lt;option value="CM" &lt;?php if($country == 'CM') { echo 'selected="selected"'; } ?&gt;&gt;Cameroon&lt;/option&gt;
&lt;option value="CA" &lt;?php if($country == 'CA') { echo 'selected="selected"'; } ?&gt;&gt;Canada&lt;/option&gt;
&lt;option value="CV" &lt;?php if($country == 'CV') { echo 'selected="selected"'; } ?&gt;&gt;Cape Verde&lt;/option&gt;
&lt;option value="KY" &lt;?php if($country == 'KY') { echo 'selected="selected"'; } ?&gt;&gt;Cayman Islands&lt;/option&gt;
&lt;option value="CF" &lt;?php if($country == 'CF') { echo 'selected="selected"'; } ?&gt;&gt;Central African Republic&lt;/option&gt;
&lt;option value="TD" &lt;?php if($country == 'TD') { echo 'selected="selected"'; } ?&gt;&gt;Chad&lt;/option&gt;
&lt;option value="CL" &lt;?php if($country == 'CL') { echo 'selected="selected"'; } ?&gt;&gt;Chile&lt;/option&gt;
&lt;option value="CN" &lt;?php if($country == 'CN') { echo 'selected="selected"'; } ?&gt;&gt;China&lt;/option&gt;
&lt;option value="CX" &lt;?php if($country == 'CX') { echo 'selected="selected"'; } ?&gt;&gt;Christmas Island&lt;/option&gt;
&lt;option value="CC" &lt;?php if($country == 'CC') { echo 'selected="selected"'; } ?&gt;&gt;Cocos (Keeling) Islands&lt;/option&gt;
&lt;option value="CO" &lt;?php if($country == 'CO') { echo 'selected="selected"'; } ?&gt;&gt;Colombia&lt;/option&gt;
&lt;option value="KM" &lt;?php if($country == 'KM') { echo 'selected="selected"'; } ?&gt;&gt;Comoros&lt;/option&gt;
&lt;option value="CG" &lt;?php if($country == 'CG') { echo 'selected="selected"'; } ?&gt;&gt;Congo&lt;/option&gt;
&lt;option value="CD" &lt;?php if($country == 'CD') { echo 'selected="selected"'; } ?&gt;&gt;Congo, The Democratic Republic Of The&lt;/option&gt;
&lt;option value="CK" &lt;?php if($country == 'CK') { echo 'selected="selected"'; } ?&gt;&gt;Cook Islands&lt;/option&gt;
&lt;option value="CR" &lt;?php if($country == 'CR') { echo 'selected="selected"'; } ?&gt;&gt;Costa Rica&lt;/option&gt;
&lt;option value="CI" &lt;?php if($country == 'CI') { echo 'selected="selected"'; } ?&gt;&gt;Cote D'Ivoire&lt;/option&gt;
&lt;option value="HR" &lt;?php if($country == 'HR') { echo 'selected="selected"'; } ?&gt;&gt;Croatia&lt;/option&gt;
&lt;option value="CU" &lt;?php if($country == 'CU') { echo 'selected="selected"'; } ?&gt;&gt;Cuba&lt;/option&gt;
&lt;option value="CY" &lt;?php if($country == 'CY') { echo 'selected="selected"'; } ?&gt;&gt;Cyprus&lt;/option&gt;
&lt;option value="CZ" &lt;?php if($country == 'CZ') { echo 'selected="selected"'; } ?&gt;&gt;Czech Republic&lt;/option&gt;
&lt;option value="DK" &lt;?php if($country == 'DK') { echo 'selected="selected"'; } ?&gt;&gt;Denmark&lt;/option&gt;
&lt;option value="DJ" &lt;?php if($country == 'DJ') { echo 'selected="selected"'; } ?&gt;&gt;Djibouti&lt;/option&gt;
&lt;option value="DM" &lt;?php if($country == 'DM') { echo 'selected="selected"'; } ?&gt;&gt;Dominica&lt;/option&gt;
&lt;option value="DO" &lt;?php if($country == 'DO') { echo 'selected="selected"'; } ?&gt;&gt;Dominican Republic&lt;/option&gt;
&lt;option value="EC" &lt;?php if($country == 'EC') { echo 'selected="selected"'; } ?&gt;&gt;Ecuador&lt;/option&gt;
&lt;option value="EG" &lt;?php if($country == 'EG') { echo 'selected="selected"'; } ?&gt;&gt;Egypt&lt;/option&gt;
&lt;option value="SV" &lt;?php if($country == 'SV') { echo 'selected="selected"'; } ?&gt;&gt;El Salvador&lt;/option&gt;
&lt;option value="GQ" &lt;?php if($country == 'GQ') { echo 'selected="selected"'; } ?&gt;&gt;Equatorial Guinea&lt;/option&gt;
&lt;option value="ER" &lt;?php if($country == 'ER') { echo 'selected="selected"'; } ?&gt;&gt;Eritrea&lt;/option&gt;
&lt;option value="EE" &lt;?php if($country == 'EE') { echo 'selected="selected"'; } ?&gt;&gt;Estonia&lt;/option&gt;
&lt;option value="ET" &lt;?php if($country == 'ET') { echo 'selected="selected"'; } ?&gt;&gt;Ethiopia&lt;/option&gt;
&lt;option value="FK" &lt;?php if($country == 'FK') { echo 'selected="selected"'; } ?&gt;&gt;Falkland Islands (Malvinas)&lt;/option&gt;
&lt;option value="FO" &lt;?php if($country == 'FO') { echo 'selected="selected"'; } ?&gt;&gt;Faroe Islands&lt;/option&gt;
&lt;option value="FJ" &lt;?php if($country == 'FJ') { echo 'selected="selected"'; } ?&gt;&gt;Fiji&lt;/option&gt;
&lt;option value="FI" &lt;?php if($country == 'FI') { echo 'selected="selected"'; } ?&gt;&gt;Finland&lt;/option&gt;
&lt;option value="FR" &lt;?php if($country == 'FR') { echo 'selected="selected"'; } ?&gt;&gt;France&lt;/option&gt;
&lt;option value="GF" &lt;?php if($country == 'GF') { echo 'selected="selected"'; } ?&gt;&gt;French Guiana&lt;/option&gt;
&lt;option value="PF" &lt;?php if($country == 'PF') { echo 'selected="selected"'; } ?&gt;&gt;French Polynesia&lt;/option&gt;
&lt;option value="TF" &lt;?php if($country == 'TF') { echo 'selected="selected"'; } ?&gt;&gt;French Southern Territories&lt;/option&gt;
&lt;option value="GA" &lt;?php if($country == 'GA') { echo 'selected="selected"'; } ?&gt;&gt;Gabon&lt;/option&gt;
&lt;option value="GM" &lt;?php if($country == 'GM') { echo 'selected="selected"'; } ?&gt;&gt;Gambia&lt;/option&gt;
&lt;option value="GE" &lt;?php if($country == 'GE') { echo 'selected="selected"'; } ?&gt;&gt;Georgia&lt;/option&gt;
&lt;option value="DE" &lt;?php if($country == 'DE') { echo 'selected="selected"'; } ?&gt;&gt;Germany&lt;/option&gt;
&lt;option value="GH" &lt;?php if($country == 'GH') { echo 'selected="selected"'; } ?&gt;&gt;Ghana&lt;/option&gt;
&lt;option value="GI" &lt;?php if($country == 'GI') { echo 'selected="selected"'; } ?&gt;&gt;Gibraltar&lt;/option&gt;
&lt;option value="GR" &lt;?php if($country == 'GR') { echo 'selected="selected"'; } ?&gt;&gt;Greece&lt;/option&gt;
&lt;option value="GL" &lt;?php if($country == 'GL') { echo 'selected="selected"'; } ?&gt;&gt;Greenland&lt;/option&gt;
&lt;option value="GD" &lt;?php if($country == 'GD') { echo 'selected="selected"'; } ?&gt;&gt;Grenada&lt;/option&gt;
&lt;option value="GP" &lt;?php if($country == 'GP') { echo 'selected="selected"'; } ?&gt;&gt;Guadeloupe&lt;/option&gt;
&lt;option value="GU" &lt;?php if($country == 'GU') { echo 'selected="selected"'; } ?&gt;&gt;Guam&lt;/option&gt;
&lt;option value="GT" &lt;?php if($country == 'GT') { echo 'selected="selected"'; } ?&gt;&gt;Guatemala&lt;/option&gt;
&lt;option value="GG" &lt;?php if($country == 'GG') { echo 'selected="selected"'; } ?&gt;&gt;Guernsey&lt;/option&gt;
&lt;option value="GN" &lt;?php if($country == 'GN') { echo 'selected="selected"'; } ?&gt;&gt;Guinea&lt;/option&gt;
&lt;option value="GW" &lt;?php if($country == 'GW') { echo 'selected="selected"'; } ?&gt;&gt;Guinea-Bissau&lt;/option&gt;
&lt;option value="GY" &lt;?php if($country == 'GY') { echo 'selected="selected"'; } ?&gt;&gt;Guyana&lt;/option&gt;
&lt;option value="HT" &lt;?php if($country == 'HT') { echo 'selected="selected"'; } ?&gt;&gt;Haiti&lt;/option&gt;
&lt;option value="HM" &lt;?php if($country == 'HM') { echo 'selected="selected"'; } ?&gt;&gt;Heard Island And Mcdonald Islands&lt;/option&gt;
&lt;option value="VA" &lt;?php if($country == 'VA') { echo 'selected="selected"'; } ?&gt;&gt;Holy See (Vatican City State)&lt;/option&gt;
&lt;option value="HN" &lt;?php if($country == 'HN') { echo 'selected="selected"'; } ?&gt;&gt;Honduras&lt;/option&gt;
&lt;option value="HK" &lt;?php if($country == 'HK') { echo 'selected="selected"'; } ?&gt;&gt;Hong Kong&lt;/option&gt;
&lt;option value="HU" &lt;?php if($country == 'HU') { echo 'selected="selected"'; } ?&gt;&gt;Hungary&lt;/option&gt;
&lt;option value="IS" &lt;?php if($country == 'IS') { echo 'selected="selected"'; } ?&gt;&gt;Iceland&lt;/option&gt;
&lt;option value="IN" &lt;?php if($country == 'IN') { echo 'selected="selected"'; } ?&gt;&gt;India&lt;/option&gt;
&lt;option value="ID" &lt;?php if($country == 'ID') { echo 'selected="selected"'; } ?&gt;&gt;Indonesia&lt;/option&gt;
&lt;option value="IR" &lt;?php if($country == 'IR') { echo 'selected="selected"'; } ?&gt;&gt;Iran, Islamic Republic Of&lt;/option&gt;
&lt;option value="IQ" &lt;?php if($country == 'IQ') { echo 'selected="selected"'; } ?&gt;&gt;Iraq&lt;/option&gt;
&lt;option value="IE" &lt;?php if($country == 'IE') { echo 'selected="selected"'; } ?&gt;&gt;Ireland&lt;/option&gt;
&lt;option value="IM" &lt;?php if($country == 'IM') { echo 'selected="selected"'; } ?&gt;&gt;Isle Of Man&lt;/option&gt;
&lt;option value="IL" &lt;?php if($country == 'IL') { echo 'selected="selected"'; } ?&gt;&gt;Israel&lt;/option&gt;
&lt;option value="IT" &lt;?php if($country == 'IT') { echo 'selected="selected"'; } ?&gt;&gt;Italy&lt;/option&gt;
&lt;option value="JM" &lt;?php if($country == 'JM') { echo 'selected="selected"'; } ?&gt;&gt;Jamaica&lt;/option&gt;
&lt;option value="JP" &lt;?php if($country == 'JP') { echo 'selected="selected"'; } ?&gt;&gt;Japan&lt;/option&gt;
&lt;option value="JE" &lt;?php if($country == 'JE') { echo 'selected="selected"'; } ?&gt;&gt;Jersey&lt;/option&gt;
&lt;option value="JO" &lt;?php if($country == 'JO') { echo 'selected="selected"'; } ?&gt;&gt;Jordan&lt;/option&gt;
&lt;option value="KZ" &lt;?php if($country == 'KZ') { echo 'selected="selected"'; } ?&gt;&gt;Kazakhstan&lt;/option&gt;
&lt;option value="KE" &lt;?php if($country == 'KE') { echo 'selected="selected"'; } ?&gt;&gt;Kenya&lt;/option&gt;
&lt;option value="KI" &lt;?php if($country == 'KI') { echo 'selected="selected"'; } ?&gt;&gt;Kiribati&lt;/option&gt;
&lt;option value="KP" &lt;?php if($country == 'KP') { echo 'selected="selected"'; } ?&gt;&gt;Korea, Democratic People'S Republic Of&lt;/option&gt;
&lt;option value="KR" &lt;?php if($country == 'KR') { echo 'selected="selected"'; } ?&gt;&gt;Korea, Republic Of&lt;/option&gt;
&lt;option value="KW" &lt;?php if($country == 'KW') { echo 'selected="selected"'; } ?&gt;&gt;Kuwait&lt;/option&gt;
&lt;option value="KG" &lt;?php if($country == 'KG') { echo 'selected="selected"'; } ?&gt;&gt;Kyrgyzstan&lt;/option&gt;
&lt;option value="LA" &lt;?php if($country == 'LA') { echo 'selected="selected"'; } ?&gt;&gt;Lao People'S Democratic Republic&lt;/option&gt;
&lt;option value="LV" &lt;?php if($country == 'LV') { echo 'selected="selected"'; } ?&gt;&gt;Latvia&lt;/option&gt;
&lt;option value="LB" &lt;?php if($country == 'LB') { echo 'selected="selected"'; } ?&gt;&gt;Lebanon&lt;/option&gt;
&lt;option value="LS" &lt;?php if($country == 'LS') { echo 'selected="selected"'; } ?&gt;&gt;Lesotho&lt;/option&gt;
&lt;option value="LR" &lt;?php if($country == 'LR') { echo 'selected="selected"'; } ?&gt;&gt;Liberia&lt;/option&gt;
&lt;option value="LY" &lt;?php if($country == 'LY') { echo 'selected="selected"'; } ?&gt;&gt;Libyan Arab Jamahiriya&lt;/option&gt;
&lt;option value="LI" &lt;?php if($country == 'LI') { echo 'selected="selected"'; } ?&gt;&gt;Liechtenstein&lt;/option&gt;
&lt;option value="LT" &lt;?php if($country == 'LT') { echo 'selected="selected"'; } ?&gt;&gt;Lithuania&lt;/option&gt;
&lt;option value="LU" &lt;?php if($country == 'LU') { echo 'selected="selected"'; } ?&gt;&gt;Luxembourg&lt;/option&gt;
&lt;option value="MO" &lt;?php if($country == 'MO') { echo 'selected="selected"'; } ?&gt;&gt;Macao&lt;/option&gt;
&lt;option value="MK" &lt;?php if($country == 'MK') { echo 'selected="selected"'; } ?&gt;&gt;Macedonia, The Former Yugoslav Republic Of&lt;/option&gt;
&lt;option value="MG" &lt;?php if($country == 'MG') { echo 'selected="selected"'; } ?&gt;&gt;Madagascar&lt;/option&gt;
&lt;option value="MW" &lt;?php if($country == 'MW') { echo 'selected="selected"'; } ?&gt;&gt;Malawi&lt;/option&gt;
&lt;option value="MY" &lt;?php if($country == 'MY') { echo 'selected="selected"'; } ?&gt;&gt;Malaysia&lt;/option&gt;
&lt;option value="MV" &lt;?php if($country == 'MV') { echo 'selected="selected"'; } ?&gt;&gt;Maldives&lt;/option&gt;
&lt;option value="ML" &lt;?php if($country == 'ML') { echo 'selected="selected"'; } ?&gt;&gt;Mali&lt;/option&gt;
&lt;option value="MT" &lt;?php if($country == 'MT') { echo 'selected="selected"'; } ?&gt;&gt;Malta&lt;/option&gt;
&lt;option value="MH" &lt;?php if($country == 'MH') { echo 'selected="selected"'; } ?&gt;&gt;Marshall Islands&lt;/option&gt;
&lt;option value="MQ" &lt;?php if($country == 'MQ') { echo 'selected="selected"'; } ?&gt;&gt;Martinique&lt;/option&gt;
&lt;option value="MR" &lt;?php if($country == 'MR') { echo 'selected="selected"'; } ?&gt;&gt;Mauritania&lt;/option&gt;
&lt;option value="MU" &lt;?php if($country == 'MU') { echo 'selected="selected"'; } ?&gt;&gt;Mauritius&lt;/option&gt;
&lt;option value="YT" &lt;?php if($country == 'YT') { echo 'selected="selected"'; } ?&gt;&gt;Mayotte&lt;/option&gt;
&lt;option value="MX" &lt;?php if($country == 'MX') { echo 'selected="selected"'; } ?&gt;&gt;Mexico&lt;/option&gt;
&lt;option value="FM" &lt;?php if($country == 'FM') { echo 'selected="selected"'; } ?&gt;&gt;Micronesia, Federated States Of&lt;/option&gt;
&lt;option value="MD" &lt;?php if($country == 'MD') { echo 'selected="selected"'; } ?&gt;&gt;Moldova, Republic Of&lt;/option&gt;
&lt;option value="MC" &lt;?php if($country == 'MC') { echo 'selected="selected"'; } ?&gt;&gt;Monaco&lt;/option&gt;
&lt;option value="MN" &lt;?php if($country == 'MN') { echo 'selected="selected"'; } ?&gt;&gt;Mongolia&lt;/option&gt;
&lt;option value="MS" &lt;?php if($country == 'MS') { echo 'selected="selected"'; } ?&gt;&gt;Montserrat&lt;/option&gt;
&lt;option value="MA" &lt;?php if($country == 'MA') { echo 'selected="selected"'; } ?&gt;&gt;Morocco&lt;/option&gt;
&lt;option value="MZ" &lt;?php if($country == 'MZ') { echo 'selected="selected"'; } ?&gt;&gt;Mozambique&lt;/option&gt;
&lt;option value="MM" &lt;?php if($country == 'MM') { echo 'selected="selected"'; } ?&gt;&gt;Myanmar&lt;/option&gt;
&lt;option value="NA" &lt;?php if($country == 'NA') { echo 'selected="selected"'; } ?&gt;&gt;Namibia&lt;/option&gt;
&lt;option value="NR" &lt;?php if($country == 'NR') { echo 'selected="selected"'; } ?&gt;&gt;Nauru&lt;/option&gt;
&lt;option value="NP" &lt;?php if($country == 'NP') { echo 'selected="selected"'; } ?&gt;&gt;Nepal&lt;/option&gt;
&lt;option value="NL" &lt;?php if($country == 'NL') { echo 'selected="selected"'; } ?&gt;&gt;Netherlands&lt;/option&gt;
&lt;option value="AN" &lt;?php if($country == 'AN') { echo 'selected="selected"'; } ?&gt;&gt;Netherlands Antilles&lt;/option&gt;
&lt;option value="NC" &lt;?php if($country == 'NC') { echo 'selected="selected"'; } ?&gt;&gt;New Caledonia&lt;/option&gt;
&lt;option value="NZ" &lt;?php if($country == 'NZ') { echo 'selected="selected"'; } ?&gt;&gt;New Zealand&lt;/option&gt;
&lt;option value="NI" &lt;?php if($country == 'NI') { echo 'selected="selected"'; } ?&gt;&gt;Nicaragua&lt;/option&gt;
&lt;option value="NE" &lt;?php if($country == 'NE') { echo 'selected="selected"'; } ?&gt;&gt;Niger&lt;/option&gt;
&lt;option value="NG" &lt;?php if($country == 'NG') { echo 'selected="selected"'; } ?&gt;&gt;Nigeria&lt;/option&gt;
&lt;option value="NU" &lt;?php if($country == 'NU') { echo 'selected="selected"'; } ?&gt;&gt;Niue&lt;/option&gt;
&lt;option value="NF" &lt;?php if($country == 'NF') { echo 'selected="selected"'; } ?&gt;&gt;Norfolk Island&lt;/option&gt;
&lt;option value="MP" &lt;?php if($country == 'MP') { echo 'selected="selected"'; } ?&gt;&gt;Northern Mariana Islands&lt;/option&gt;
&lt;option value="NO" &lt;?php if($country == 'NO') { echo 'selected="selected"'; } ?&gt;&gt;Norway&lt;/option&gt;
&lt;option value="OM" &lt;?php if($country == 'OM') { echo 'selected="selected"'; } ?&gt;&gt;Oman&lt;/option&gt;
&lt;option value="PK" &lt;?php if($country == 'PK') { echo 'selected="selected"'; } ?&gt;&gt;Pakistan&lt;/option&gt;
&lt;option value="PW" &lt;?php if($country == 'PW') { echo 'selected="selected"'; } ?&gt;&gt;Palau&lt;/option&gt;
&lt;option value="PS" &lt;?php if($country == 'PS') { echo 'selected="selected"'; } ?&gt;&gt;Palestinian Territory, Occupied&lt;/option&gt;
&lt;option value="PA" &lt;?php if($country == 'PA') { echo 'selected="selected"'; } ?&gt;&gt;Panama&lt;/option&gt;
&lt;option value="PG" &lt;?php if($country == 'PG') { echo 'selected="selected"'; } ?&gt;&gt;Papua New Guinea&lt;/option&gt;
&lt;option value="PY" &lt;?php if($country == 'PY') { echo 'selected="selected"'; } ?&gt;&gt;Paraguay&lt;/option&gt;
&lt;option value="PE" &lt;?php if($country == 'PE') { echo 'selected="selected"'; } ?&gt;&gt;Peru&lt;/option&gt;
&lt;option value="PH" &lt;?php if($country == 'PH') { echo 'selected="selected"'; } ?&gt;&gt;Philippines&lt;/option&gt;
&lt;option value="PN" &lt;?php if($country == 'PN') { echo 'selected="selected"'; } ?&gt;&gt;Pitcairn&lt;/option&gt;
&lt;option value="PL" &lt;?php if($country == 'PL') { echo 'selected="selected"'; } ?&gt;&gt;Poland&lt;/option&gt;
&lt;option value="PT" &lt;?php if($country == 'PT') { echo 'selected="selected"'; } ?&gt;&gt;Portugal&lt;/option&gt;
&lt;option value="PR" &lt;?php if($country == 'PR') { echo 'selected="selected"'; } ?&gt;&gt;Puerto Rico&lt;/option&gt;
&lt;option value="QA" &lt;?php if($country == 'QA') { echo 'selected="selected"'; } ?&gt;&gt;Qatar&lt;/option&gt;
&lt;option value="RE" &lt;?php if($country == 'RE') { echo 'selected="selected"'; } ?&gt;&gt;Reunion&lt;/option&gt;
&lt;option value="RO" &lt;?php if($country == 'RO') { echo 'selected="selected"'; } ?&gt;&gt;Romania&lt;/option&gt;
&lt;option value="RU" &lt;?php if($country == 'RU') { echo 'selected="selected"'; } ?&gt;&gt;Russian Federation&lt;/option&gt;
&lt;option value="RW" &lt;?php if($country == 'RW') { echo 'selected="selected"'; } ?&gt;&gt;Rwanda&lt;/option&gt;
&lt;option value="SH" &lt;?php if($country == 'SH') { echo 'selected="selected"'; } ?&gt;&gt;Saint Helena&lt;/option&gt;
&lt;option value="KN" &lt;?php if($country == 'KN') { echo 'selected="selected"'; } ?&gt;&gt;Saint Kitts And Nevis&lt;/option&gt;
&lt;option value="LC" &lt;?php if($country == 'LC') { echo 'selected="selected"'; } ?&gt;&gt;Saint Lucia&lt;/option&gt;
&lt;option value="PM" &lt;?php if($country == 'PM') { echo 'selected="selected"'; } ?&gt;&gt;Saint Pierre And Miquelon&lt;/option&gt;
&lt;option value="VC" &lt;?php if($country == 'VC') { echo 'selected="selected"'; } ?&gt;&gt;Saint Vincent And The Grenadines&lt;/option&gt;
&lt;option value="WS" &lt;?php if($country == 'WS') { echo 'selected="selected"'; } ?&gt;&gt;Samoa&lt;/option&gt;
&lt;option value="SM" &lt;?php if($country == 'SM') { echo 'selected="selected"'; } ?&gt;&gt;San Marino&lt;/option&gt;
&lt;option value="ST" &lt;?php if($country == 'ST') { echo 'selected="selected"'; } ?&gt;&gt;Sao Tome And Principe&lt;/option&gt;
&lt;option value="SA" &lt;?php if($country == 'SA') { echo 'selected="selected"'; } ?&gt;&gt;Saudi Arabia&lt;/option&gt;
&lt;option value="SN" &lt;?php if($country == 'SN') { echo 'selected="selected"'; } ?&gt;&gt;Senegal&lt;/option&gt;
&lt;option value="CS" &lt;?php if($country == 'CS') { echo 'selected="selected"'; } ?&gt;&gt;Serbia And Montenegro&lt;/option&gt;
&lt;option value="SC" &lt;?php if($country == 'SC') { echo 'selected="selected"'; } ?&gt;&gt;Seychelles&lt;/option&gt;
&lt;option value="SL" &lt;?php if($country == 'SL') { echo 'selected="selected"'; } ?&gt;&gt;Sierra Leone&lt;/option&gt;
&lt;option value="SG" &lt;?php if($country == 'SG') { echo 'selected="selected"'; } ?&gt;&gt;Singapore&lt;/option&gt;
&lt;option value="SK" &lt;?php if($country == 'SK') { echo 'selected="selected"'; } ?&gt;&gt;Slovakia&lt;/option&gt;
&lt;option value="SI" &lt;?php if($country == 'SI') { echo 'selected="selected"'; } ?&gt;&gt;Slovenia&lt;/option&gt;
&lt;option value="SB" &lt;?php if($country == 'SB') { echo 'selected="selected"'; } ?&gt;&gt;Solomon Islands&lt;/option&gt;
&lt;option value="SO" &lt;?php if($country == 'SO') { echo 'selected="selected"'; } ?&gt;&gt;Somalia&lt;/option&gt;
&lt;option value="ZA" &lt;?php if($country == 'ZA') { echo 'selected="selected"'; } ?&gt;&gt;South Africa&lt;/option&gt;
&lt;option value="GS" &lt;?php if($country == 'GS') { echo 'selected="selected"'; } ?&gt;&gt;South Georgia And The South Sandwich Islands&lt;/option&gt;
&lt;option value="ES" &lt;?php if($country == 'ES') { echo 'selected="selected"'; } ?&gt;&gt;Spain&lt;/option&gt;
&lt;option value="LK" &lt;?php if($country == 'LK') { echo 'selected="selected"'; } ?&gt;&gt;Sri Lanka&lt;/option&gt;
&lt;option value="SD" &lt;?php if($country == 'SD') { echo 'selected="selected"'; } ?&gt;&gt;Sudan&lt;/option&gt;
&lt;option value="SR" &lt;?php if($country == 'SR') { echo 'selected="selected"'; } ?&gt;&gt;Suriname&lt;/option&gt;
&lt;option value="SJ" &lt;?php if($country == 'SJ') { echo 'selected="selected"'; } ?&gt;&gt;Svalbard And Jan Mayen&lt;/option&gt;
&lt;option value="SZ" &lt;?php if($country == 'SZ') { echo 'selected="selected"'; } ?&gt;&gt;Swaziland&lt;/option&gt;
&lt;option value="SE" &lt;?php if($country == 'SE') { echo 'selected="selected"'; } ?&gt;&gt;Sweden&lt;/option&gt;
&lt;option value="CH" &lt;?php if($country == 'CH') { echo 'selected="selected"'; } ?&gt;&gt;Switzerland&lt;/option&gt;
&lt;option value="SY" &lt;?php if($country == 'SY') { echo 'selected="selected"'; } ?&gt;&gt;Syrian Arab Republic&lt;/option&gt;
&lt;option value="TW" &lt;?php if($country == 'TW') { echo 'selected="selected"'; } ?&gt;&gt;Taiwan, Province Of China&lt;/option&gt;
&lt;option value="TJ" &lt;?php if($country == 'TJ') { echo 'selected="selected"'; } ?&gt;&gt;Tajikistan&lt;/option&gt;
&lt;option value="TZ" &lt;?php if($country == 'TZ') { echo 'selected="selected"'; } ?&gt;&gt;Tanzania, United Republic Of&lt;/option&gt;
&lt;option value="TH" &lt;?php if($country == 'TH') { echo 'selected="selected"'; } ?&gt;&gt;Thailand&lt;/option&gt;
&lt;option value="TL" &lt;?php if($country == 'TL') { echo 'selected="selected"'; } ?&gt;&gt;Timor-Leste&lt;/option&gt;
&lt;option value="TG" &lt;?php if($country == 'TG') { echo 'selected="selected"'; } ?&gt;&gt;Togo&lt;/option&gt;
&lt;option value="TK" &lt;?php if($country == 'TK') { echo 'selected="selected"'; } ?&gt;&gt;Tokelau&lt;/option&gt;
&lt;option value="TO" &lt;?php if($country == 'TO') { echo 'selected="selected"'; } ?&gt;&gt;Tonga&lt;/option&gt;
&lt;option value="TT" &lt;?php if($country == 'TT') { echo 'selected="selected"'; } ?&gt;&gt;Trinidad And Tobago&lt;/option&gt;
&lt;option value="TN" &lt;?php if($country == 'TN') { echo 'selected="selected"'; } ?&gt;&gt;Tunisia&lt;/option&gt;
&lt;option value="TR" &lt;?php if($country == 'TR') { echo 'selected="selected"'; } ?&gt;&gt;Turkey&lt;/option&gt;
&lt;option value="TM" &lt;?php if($country == 'TM') { echo 'selected="selected"'; } ?&gt;&gt;Turkmenistan&lt;/option&gt;
&lt;option value="TC" &lt;?php if($country == 'TC') { echo 'selected="selected"'; } ?&gt;&gt;Turks And Caicos Islands&lt;/option&gt;
&lt;option value="TV" &lt;?php if($country == 'TV') { echo 'selected="selected"'; } ?&gt;&gt;Tuvalu&lt;/option&gt;
&lt;option value="UG" &lt;?php if($country == 'UG') { echo 'selected="selected"'; } ?&gt;&gt;Uganda&lt;/option&gt;
&lt;option value="UA" &lt;?php if($country == 'UA') { echo 'selected="selected"'; } ?&gt;&gt;Ukraine&lt;/option&gt;
&lt;option value="AE" &lt;?php if($country == 'AE') { echo 'selected="selected"'; } ?&gt;&gt;United Arab Emirates&lt;/option&gt;
&lt;option value="GB" &lt;?php if($country == 'GB') { echo 'selected="selected"'; } ?&gt;&gt;United Kingdom&lt;/option&gt;
&lt;option value="US" &lt;?php if($country == 'US') { echo 'selected="selected"'; } ?&gt;&gt;United States&lt;/option&gt;
&lt;option value="UM" &lt;?php if($country == 'UM') { echo 'selected="selected"'; } ?&gt;&gt;United States Minor Outlying Islands&lt;/option&gt;
&lt;option value="UY" &lt;?php if($country == 'UY') { echo 'selected="selected"'; } ?&gt;&gt;Uruguay&lt;/option&gt;
&lt;option value="UZ" &lt;?php if($country == 'UZ') { echo 'selected="selected"'; } ?&gt;&gt;Uzbekistan&lt;/option&gt;
&lt;option value="VU" &lt;?php if($country == 'VU') { echo 'selected="selected"'; } ?&gt;&gt;Vanuatu&lt;/option&gt;
&lt;option value="VE" &lt;?php if($country == 'VE') { echo 'selected="selected"'; } ?&gt;&gt;Venezuela&lt;/option&gt;
&lt;option value="VN" &lt;?php if($country == 'VN') { echo 'selected="selected"'; } ?&gt;&gt;Viet Nam&lt;/option&gt;
&lt;option value="VG" &lt;?php if($country == 'VG') { echo 'selected="selected"'; } ?&gt;&gt;Virgin Islands, British&lt;/option&gt;
&lt;option value="VI" &lt;?php if($country == 'VI') { echo 'selected="selected"'; } ?&gt;&gt;Virgin Islands, U.S.&lt;/option&gt;
&lt;option value="WF" &lt;?php if($country == 'WF') { echo 'selected="selected"'; } ?&gt;&gt;Wallis And Futuna&lt;/option&gt;
&lt;option value="EH" &lt;?php if($country == 'EH') { echo 'selected="selected"'; } ?&gt;&gt;Western Sahara&lt;/option&gt;
&lt;option value="YE" &lt;?php if($country == 'YE') { echo 'selected="selected"'; } ?&gt;&gt;Yemen&lt;/option&gt;
&lt;option value="ZM" &lt;?php if($country == 'ZM') { echo 'selected="selected"'; } ?&gt;&gt;Zambia&lt;/option&gt;
&lt;option value="ZW" &lt;?php if($country == 'ZW') { echo 'selected="selected"'; } ?&gt;&gt;Zimbabwe&lt;/option&gt;
&lt;/select&gt;</code></pre>
<p>Hopefully I&#8217;ve saved some time for other programmers out there who have come across the same issues I have. Be sure to leave a comment and let me know if I was able to help you. </p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-7381820589111237";
/* Android Fix Post Ad */
google_ad_slot = "8529472678";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://the-dro.com/web-design/programming/php-and-html-code-for-displaying-country-drop-down-inputs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vendor Client Relationships in the Real World</title>
		<link>http://the-dro.com/web-design/programming/vendor-client-relationships-in-the-real-world/</link>
		<comments>http://the-dro.com/web-design/programming/vendor-client-relationships-in-the-real-world/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 00:35:39 +0000</pubDate>
		<dc:creator>The Dro</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[designers]]></category>
		<category><![CDATA[programmers]]></category>
		<category><![CDATA[relationships in real world]]></category>

		<guid isPermaLink="false">http://the-dro.com/?p=418</guid>
		<description><![CDATA[This is exactly how I feel when dealing with some of my clients. I&#8217;ve even went as far as making the analogy that if they were at a store and wanted to purchase an Item, but did not want to pay for the item upfront or even it&#8217;s full cost, would that store let them [...]]]></description>
			<content:encoded><![CDATA[<p>This is exactly how I feel when dealing with some of my clients. I&#8217;ve even went as far as making the analogy that if they were at a store and wanted to purchase an Item, but did not want to pay for the item upfront or even it&#8217;s full cost, would that store let them walk out with it? Of course not. Here&#8217;s a little video that will shine a little more light into this subject. Next time you decide you want to hire a designer or programmer but don&#8217;t want to make a deposit or pay what the project is worth, just think of this video&#8230;</p>
<p><center><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/R2a8TRSgzZY?fs=1&amp;hl=en_US&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/R2a8TRSgzZY?fs=1&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></center></p>
]]></content:encoded>
			<wfw:commentRss>http://the-dro.com/web-design/programming/vendor-client-relationships-in-the-real-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>40 Tips for optimizing your php code</title>
		<link>http://the-dro.com/web-design/programming/40-tips-for-optimizing-your-php-code/</link>
		<comments>http://the-dro.com/web-design/programming/40-tips-for-optimizing-your-php-code/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 23:22:23 +0000</pubDate>
		<dc:creator>The Dro</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[clean code]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[optimizing]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php optimization]]></category>
		<category><![CDATA[print]]></category>

		<guid isPermaLink="false">http://the-dro.com/?p=14</guid>
		<description><![CDATA[Great article I found on <a href="http://reinholdweber.com/">http://reinholdweber.com/</a> about optimizing your php code.]]></description>
			<content:encoded><![CDATA[<p>Great article I found on <a href="http://reinholdweber.com/">http://reinholdweber.com/</a> about optimizing your php code.<br />
</p>
<ol>
<li>If a method can be static, declare it static. Speed improvement is by a factor of 4.</li>
<li><em>echo</em> is faster than <em>print</em>.</li>
<li>Use echo&#8217;s multiple parameters instead of string concatenation.</li>
<p><span id="more-14"></span></p>
<li>Set the maxvalue for your for-loops before and not in the loop.</li>
<li>Unset your variables to free memory, especially large arrays.</li>
<li>Avoid magic like __get, __set, __autoload</li>
<li>require_once() is expensive</li>
<li>Use full paths in includes and requires, less time spent on resolving the OS paths.</li>
<li>If you need to find out the time when the script started executing, $_SERVER[’REQUEST_TIME’] is preferred to time()</li>
<li>See if you can use strncasecmp, strpbrk and stripos instead of regex</li>
<li>str_replace is faster than preg_replace, but strtr is faster than str_replace by a factor of 4</li>
<li>If the function, such as string replacement function, accepts both arrays and single characters as arguments, and if your argument list is not too long, consider writing a few redundant replacement statements, passing one character at a time, instead of one line of code that accepts arrays as search and replace arguments.</li>
<li>It&#8217;s better to use switch statements than multi if, else if, statements.</li>
<li>Error suppression with @ is very slow.</li>
<li>Turn on apache&#8217;s mod_deflate</li>
<li>Close your database connections when you&#8217;re done with them</li>
<li>$row[’id’] is 7 times faster than $row[id]</li>
<li>Error messages are expensive</li>
<li>Do not use functions inside of for loop, such as for ($x=0; $x &lt; count($array); $x) The count() function gets called each time.</li>
<li>Incrementing a local variable in a method is the fastest. Nearly the same as calling a local variable in a function.</li>
<li>Incrementing a global variable is 2 times slow than a local var.</li>
<li>Incrementing an object property (eg. $this-&gt;prop++) is 3 times slower than a local variable.</li>
<li>Incrementing an undefined local variable is 9-10 times slower than a pre-initialized one.</li>
<li>Just declaring a global variable without using it in a function also slows things down (by about the same amount as incrementing a local var). PHP probably does a check to see if the global exists.</li>
<li>Method invocation appears to be independent of the number of methods defined in the class because I added 10 more methods to the test class (before and after the test method) with no change in performance.</li>
<li>Methods in derived classes run faster than ones defined in the base class.</li>
<li>A function call with one parameter and an empty function body takes about the same time as doing 7-8 $localvar++ operations. A similar method call is of course about 15 $localvar++ operations.</li>
<li>Surrounding your string by &#8216; instead of &#8221; will make things interpret a  little faster since php looks for variables inside &#8220;&#8230;&#8221; but not inside  &#8216;&#8230;&#8217;. Of course you can only do this when you don&#8217;t need to have  variables in the string.</li>
<li>When echoing strings it&#8217;s faster to separate them by comma instead of dot.   	          Note: This only works with echo, which is a function that can take several strings as arguments.</li>
<li>A PHP script will be served at least 2-10 times slower than a static  HTML page by Apache. Try to use more static HTML pages and fewer  scripts.</li>
<li>Your PHP scripts are recompiled every time unless the scripts are cached. Install a PHP caching product to typically increase performance by 25-100% by removing compile times.</li>
<li>Cache as much as possible. Use memcached &#8211; memcached is a high-performance memory object caching system intended to speed up dynamic web applications by alleviating database load. OP code caches are useful so that your script does not have to be compiled on every request</li>
<li>When working with strings and you need to check that the string is  either of a certain length you&#8217;d understandably would want to use the  strlen() function. This function is pretty quick since it&#8217;s operation  does not perform any calculation but merely return the already known  length of a string available in the zval structure (internal C struct  used to store variables in PHP). However because strlen() is a function  it is still somewhat slow because the function call requires several  operations such as lowercase &amp; hashtable lookup followed by the  execution of said function. In some instance you can improve the speed  of your code by using an isset() trick.Ex.if (strlen($foo) &lt; 5) { echo &#8220;Foo is too short&#8221;; }vs.
<p>if (!isset($foo{5})) { echo &#8220;Foo is too short&#8221;; }</p>
<p>Calling isset() happens to be faster then strlen() because unlike  strlen(), isset() is a language construct and not a function meaning  that it&#8217;s execution does not require function lookups and lowercase.  This means you have virtually no overhead on top of the actual code  that determines the string&#8217;s length.</li>
<li>When incrementing or decrementing the value of the variable $i++  happens to be a tad slower then ++$i. This is something PHP specific  and does not apply to other languages, so don&#8217;t go modifying your C or  Java code thinking it&#8217;ll suddenly become faster, it won&#8217;t. ++$i happens  to be faster in PHP because instead of 4 opcodes used for $i++ you only  need 3. Post incrementation actually causes in the creation of a  temporary var that is then incremented. While pre-incrementation  increases the original value directly. This is one of the optimization  that opcode optimized like Zend&#8217;s PHP optimizer. It is a still a good  idea to keep in mind since not all opcode optimizers perform this  optimization and there are plenty of ISPs and servers running without  an opcode optimizer.</li>
<li>Not everything has to be OOP, often it is too much overhead, each method and object call consumes a lot of memory.</li>
<li>Do not implement every data structure as a class, arrays are useful, too</li>
<li>Don&#8217;t split methods too much, think, which code you will really re-use</li>
<li>You can always split the code of a method later, when needed</li>
<li>Make use of the countless predefined functions</li>
<li>If you have very time consuming functions in your code, consider writing them as C extensions</li>
<li>Profile your code. A profiler shows you, which parts of your code consumes how many time. The Xdebug debugger already contains a profiler. Profiling shows you the bottlenecks in overview</li>
<li>mod_gzip which is available as an Apache module compresses your data on the fly and can reduce the data to transfer up to 80%</li>
<li><a href="http://phplens.com/lens/php-book/optimizing-debugging-php.php" target="_blank">Excellent Article</a> about optimizing php by John Lim</li>
</ol>
<p>This article has been translated in several languages, the newest one is a portuguese translation by <a href="http://blog.lucas-ts.com/programacao/traducao-39-dicas-de-perfomance-php/" target="_blank">Lucas Stephanou</a></p>
]]></content:encoded>
			<wfw:commentRss>http://the-dro.com/web-design/programming/40-tips-for-optimizing-your-php-code/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

