How Eyes Work On a Jumping Spider
Jumping spiders have excellent vision, with some of the highest vision clarity out of all the invertebrates. You may not already know this, but not all Spiders have eight eyes. However, the Jumping spider does. Four of which are grouped on the face (the two big eyes in the middle, and two smaller Lateral eyes on the side), and four extra eyes on top (two medium-sized eyes toward the back, and two very small eyes in front of them). The two eyes located in mid portion of the front of the face has extremely high clarity but a small field of view, and the remaining six eyes acts more like our peripheral vision. Instead, with a lower resolution but broad field of view.
The Two eyes in the middle front side of the face are long and tubular, which assists in their resolution (longer focal length which in turn helps with adding more magnification) but which means they have a very narrow field of view out of those two eyes. Since those two have such a narrow field of view, the spider needs to point them in different directions in order to be able to view different things. This is partially accomplished by moving the carapace, but the eyes can move too. This is not done by moving the whole eyeball, like we would, since the lenses of the eyes are actually built into the carapace. Instead the whole retina is what moves around, while the lens stays in the same fixed position.
Since the retina is the darkest part of the eye and it moves around, you can sometimes look into the eye of a jumping spider and see it changing color. When it is darkest, you know the spider is looking directly at you because then you are looking down into its retina. It’s kind of creepy in a way, but awesome to see for yourself.
I found this video online which shows you a spider looking around while it is eating a fly.
video credit: zxgirl’s photostream on flickr
Type of Spider: Magnolia Green Jumper, Lyssomanes viridis
1 Million Apple Device IDs Leaked

For those of you with APPLE products, Can you tell me what the FBI is doing with your UDID’s?
One million Apple UDIDs (Universal Device IDs) were released to the public today by a group of hackers. Now, a lot of you may be thinking that it was malicious of them to release everyone’s UDID’s but I completely understand their reasoning behind it. They were even nice enough to strip out a lot of the personal info that went in there such as home addresses, zip codes, cell phone numbers and more.
The hacker was snooping around the FBI laptop and came across everyone’s information and probably thought to himself, “WTF is an FBI agent doing with apple users’ information?” Then he decided all of you should know about it and be able to search for your UDID to see if they had your information in this file of 12 Million UDID’s. For now only one million has been released, but I guarantee you’ll find yours in the other 11 Million.
Read more about it here:
http://lifehacker.com/5940197/1-million-apple-device-ids-leaked-12-million-total-stolen
Also, If you would like to search for your UDID, go here:
http://kimosabe.net/test.html
Kind Industries
For the past year I’ve been working on this awesome website where models, photographers, and musicians can all help each other out to get noticed and to get work.
It’s just like myspace mashed a bit with model mayhem but more industry specific. We’d love to have you on our new site! There are free accounts and only takes a few minutes to Register! We look forward to having you on the site! If you’re already using it, We’ve just updated the site with a tons of new features! Check it out!
By The Way, Even if you’re not in the biz, you’re able to sign up as a basic member. Check it out a KindIndustries.com

CentOS 6 – [warn] module dnssd_module is already loaded ERROR/WARNING
![linux-httpd-warning linux httpd warning 400x265 CentOS 6 [warn] module dnssd module is already loaded ERROR/WARNING](http://the-dro.com/wp-content/uploads/2011/11/linux-httpd-warning-400x265.jpg)
Today I was messing around with some of the settings on my CentOS6 Server in order to setup more VirtualHost site directories and every time I went to restart my httpd service I kept getting a warning that said,
[warn] module dnssd_module is already loaded, skipping
The reason I kept getting this warning is because I added,
Include "/etc/httpd/conf.d/*.conf"
to the end of my httpd.conf file in order to use all of the *.conf VirtualHost setup files in the conf.d directory. What I DIDN’T notice was that the httpd.conf file already had an Include inference listed at line 221 right under the all of the LoadModule settings. It specifically stated,
Include "conf.d/*.conf"
In turn, every time I tried to reload the httpd service, it was accessing the *.conf files multiple times thus returning the warning. It was a simple mistake that I had overlooked which caused me about an hour of trying to figure out what I missed in the httpd.conf file which kept tripping this warning. I have been setting up web servers for years but just recently started doing it on my own Linux server instead of using a hosting company and still have a lot to learn. I wanted to post this in case any of you run into the same issue. Be sure to check your httpd.conf file for a secondary instance of Include and luckily it’s an easy fix. Most of the web servers I’ve setup at my home office were on windows and I made the smart decision to finally begin porting over and learning Linux top to bottom. Feel free to leave comments below if you’ve ever had any similar embarrassing issues or if you possibly need help figuring out an issue you’re stuck on. I’d be happy to try to help!
DIY PVC DSLR Camera Stabilizers
I put together two different camera stabilizers made by PVC after watching a couple of tutorials by FrugalFilmMaker & Knoptop. I have posted the links to their tutorials in the video as well as below.
Personally, I have found that both of the rigs are extremely easy to put together and took me about 1 hour to complete the both of them. Also, they are really easy to customize and in the middle of putting them together I decided to make some last-minute changes to the way I was building them and personalized them a bit more to fit my needs.
Feel free to leave your thoughts and comments below and be sure to watch their videos in order to support the great effort they put into helping all of us in saving hundreds of dollars with their great and east to follow tutorials!
FrugalFilmMaker – Camera Stabilizer Rig for Under $5 :
http://youtu.be/qZtlSVgG1h8
Knoptop – $15 Camera Stabilizer:
http://youtu.be/sa7eeZgqRas
Android & Voice Commands VS iPhone iOS and Siri
Ahh, Another one of the age-old debates of Android vs iOS.
These are some of my opinions against the new iPhone 4S, iOS and Siri being Ground-Breaking… I’ve done some voice command tests as well to prove that Siri really isn’t as ground-breaking and as new as people believe it to be. These type of features have been around for years already. The iPhone 4S is just a catch-up device. This set of hardware, software, and functionality would have been a bit more groud-breaking and innovative had it been released in the iPhone 3GS. Other devices around the same time that phone came out were releasing 8MP Cameras, Voice Command Features, and more. A lot of you believe that iPhone was the first smart phone out there to integrate a touch-screen into a cellphone, an mp3 player, and so on. Anyone who’s a bit savvy with Google will find that Sony Had a touchscreen Ericson back in 2000, There were also other cell phones with the capability of playing MP3′s years before iPhone’s release in 2007. I believe the only reason iPhone does so much better is because of perception of the device as being revolutionary.
Some people have been also arguing that Siri is innovative because you can speak to it without the need to use actual voice commands. Iris and Vlingo for Android are capable of doing that as well. Vlingo is a personal assistant as well and has been out for a while now. In the end, I believe it all boils down to personal preference on devices. The real point I’m trying to make though is that there’s nothing Evolutionary or Ground-Breaking about the new Apple Product Releases. This has all been widely seen in previous devices from other companies years before.
The iPhone 4S is nothing Extravegant!

I don’t understand why everyone’s making such a big deal about Apple’s iPhone 4S and it’s new features. Android has had these features for years. I’ve always been the first to say that iPhone is always behind in hardware when it’s released. I still will admit they have the best touch screen, but everything else should be way more advanced. Dual Core Processors have been around for about a year now in smart phones. Voice Control and Search has been around since just about the beginning of Android. Smart Phones have come equipped with 8MP Cameras for years. Notification center? Android has had that since it’s very first version. It’s also had the ability to focus in on photos, use a button on the side of the phone to snap the shot, then assist with software features to crop and enhance your photos. I don’t see why apple’s new device is ground-breaking at all. Can someone please explain this to me? And why has Apple’s founders been obsessed with Siri Cruise? I’ve been hearing Steve Jobs mention her name quite a bit in previous Key notes before the app was actually released… a Little creepy if you ask me…
Giant Crane Fly, Often Mistaken for a Mosquito

I caught this giant bastard mid-air like Mr. Miyagi and shit.
A lot of people think these are giant mosquito’s flying around their homes but they’re actually just another type of fly. Crane Flies are harmless and there’s really no reason to kill them other than the fact that they’re scary as hell looking!
Crane Flies can become an annoyance when they enter homes but They really do no harm. The only reason they make it into your home is ’cause they are attracted to lights that you forget to shut off when you leave the room! Crane Flies don’t bite at all even though they look like they’re going to suck all of the blood out of the next unsuspecting victim, actually though, they don’t even eat! Their larvae, however, are very important because they assist in breaking down dead plant material. Mainly, dead leaves and stems on the bottoms of streams. This is part of what causes the water to remain healthy for fish and other wildlife that live or drink from the source.
If you’re looking for more information on these creepy bastards, they are in the Tipula genus. The common is (Tipulidae oleracea).
Crane Fly Larvae

Crane Fly Larvae Closeup
Tuning Tutorial for Android Drag Racing Game

This is just a basic How to article on How to Tune your Cars for the Android device based game called Drag Racing. My article is more of an opinion and what’s worked for me on a regular basis. It may not be the best way, but I’ve gotten ahead using this method and win about 80% of the races I enter.

Here’s the way I usually approach tuning my cars:
1. Nitrous.
Starting with Nitrous, 100%-110% has always worked the best for me. Usually when I try to give it more or less, I notice my race time drops immensely. Too much will make your tires skid out, too little won’t be enough of a push.
2. Final Drive.
This will depend on your car and what kind of start you want. You can bring this setting down in order to red-line without peeling out during take-off. I usually leave this setting around 3.2-3.7 to begin with and then tweak it after I’m done setting up the rest of the gears. I did notice with the more expensive, faster cars, Final drive usually works best when set below gear one. However, with some of the slower, lower level cars, they perform best when Final Drive is set higher than Gear 1.
3. 1st Gear and 2nd Gear.
I know that peeling out can lose some time for you. The more power your car has without the proper amount of grip will leave your car at a stand-still while your opponent takes off on you. Make sure to upgrade the tires and drop some of the weight on the car first, so your car is capable of gripping better during take-off. The lower you set these gears, the better grip your car will have during take-off. However, I’ve noticed that having a bit of slip during take-off is not necessarily a bad thing. When your car isn’t peeling out, it can also mean that you’re not really putting enough power to the wheels during take-off and your opponent car will quickly launch passed you. I usually set 1st Gear in an area where you can immediately switch to second gear with just the right amount of peel-out that leaves you taking off faster than the opponent car on the test screen. I go back and forth from the tuning screen to the test race screen to see which setting works the best for take-off depending on which car I’ve chosen.
Another thing to take note of is that second gear should be a lower number than first gear, but not too much. The idea is to be able to launch from first to second gear immediately and if you leave the second gear a lot lower than the first, your car will lag during the launch. For example, One of my car’s has 1st Gear set to around 3.4 while 2nd gear is set to around 2.8. Once I notice the car is launching faster than the opponent test race car, I know it’s time to move on to Gear #3.
4. 3rd Gear.
The 3rd gear is the one I usually find the most important to get right. This one will affect two things; The first thing being whether or not you can hit Nitrous with enough grip to launch you forward without peeling out too much causing you to be left behind. The second thing you need to watch for is whether or not your android drag racing car is powerful enough to launch you to 4th Gear in an extremely short amount of time.
The 3rd gear is usually the first gear I set that has a large gap between its previous gear. So here’s another example; If my second gear is set to 2.8, I’d set my third gear to 1.7. It’s almost a whole number step down. This setting usually works for some of the faster cars such as the Novitec Rosso 599 GTB. As long as you have a lot of grip and most of the car’s weight reduced, this car is capable of performing with a high power at the higher gears if set correctly. If it lags a bit when you reach 3rd gear, this is a perfect timing to hit the nitrous to give it just enough power needed for you to zoom passed your opponent. I’ve noticed quite a few of my races where my opponent had a great launch and may have been way ahead of me from launching with nitrous, but as soon as I hit my 3rd gear and hit that nitrous, my car fly’s passed them no matter how far ahead they are
.
5. 4th Gear.
Again, depending on what car you have will depend on which setting this gear will have. This gear is another one that you’ll just have to test out repeatedly until you get it right for the car you’re driving. This gear should be set a bit lower than the third gear so that it gives you enough room to accept the power of nitrous if used. I normally drop this setting around .3-.5 under whatever gear #3 is set to.
6. 5th, 6th, and 7th Gears.
I’ve noticed that these upper gears will make the difference in the top speed your car reached during the race combined with the Final Drive Setting. I’ve had car’s that run in the lower 9 Seconds in the ¼ Mile race, but then I change the 5th and 6th gear slightly and I lose a whole .2-.4 seconds off my time. In order to get these settings right, I usually set them just a tad bit lower than the gears before it but make sure when I test race the car, that my final top speed hasn’t dropped. After running a few test races, I’ll notice which setting takes my car to gradually launch passed the opponent car just before the finish line. Once I notice my test races are running real smooth and I’m winning most of them, I tweak the settings very minor. I’ll first save my best test race settings under the presets screen for whichever race I’m tuning for (1/4 Mile or ½ Mile). Once It’s saved, then I can slowly tweak my higher gears one at a time along with the Final Drive and see which changes pushes my car to a higher top speed. You’ll notice some gradual changes will make a very big difference on your race times. Thank god for the Saving Preset feature. There’s been a few times where I’ve forgotten to save my settings and then I have a hard time setting it back up for the car’s top speed. So make sure to always save if you win the test race by a gracious amount of time.
Thanks for taking the time to read this little article and I hope I’ve helped some of you come up with a new way to better tune your cars. I’ve notice some of my friends just constantly change the settings blindly until they get something they feel is good enough, and will win 50% of the time. Taking that extra moment to check your settings and tweak them little by little goes a long way in winning the races more often.
I’ve really hated the fact that a lot of people in the Android Drag Racing community have kept their settings and tuning techniques as a guarded secret like the world will end if anyone finds out. I understand that this is a competition game but it still makes a big difference in how someone actually races the car. I’ve seen two people with the same exact settings race, and one of them still win each time. It all has to do with how you shift gears, when you shift them, and how quickly you use up your nitrous. I’m not afraid to give out my settings and I invite those of you who agree with me, to share your settings in the comments below. I believe that helping each other out will also force us to challenge ourselves a little more as well so that even if someone is using a similar setting as us, we come up with a better strategy to shave even more time off our final race times.

7. Type of Cars:
Last, but definitely not least, the type of car you use makes a big difference in how well you’ll perform in your races. I’ve seen a lot of the American muscle cars get left behind on a numerous amount of races. I’m sure you’ve noticed as well that most of the foreign cars are the ones with the lowest race times in the game.
Here are some that’s consistently worked for me:
Level 3
BMW 328is E36
Upgrades: Fully Maxed out in upgrades
Tuning Settings: 1/2 Mile
NOS: 2.65s @ 113%
Final Drive: 3.454
1st: 3.450
2nd: 2.750
3rd: 1.921
4th: 1.068
5th: 0.836
Honda S2000
Upgrades: Fully Maxed out in upgrades
Tuning Settings: 1/4 Mile
NOS: 2.75s @ 109%
Final Drive: 3.926
1st: 3.223
2nd: 2.500
3rd: 1.806
4th: 1.379
5th: 1.000
6th: 0.539
Tuning Settings: 1/2 Mile
NOS: 2.84s @ 106%
Final Drive: 4.019
1st: 3.223
2nd: 2.500
3rd: 1.771
4th: 1.149
5th: 0.941
6th: 0.686
Level 4
Honda NSX
Upgrades: Fully Maxed out in upgrades
This car I haven’t tuned yet, and I still win most of the races with it.
Level 6
Novitec Rosso 599 GTB (*This car is my favorite)
Upgrades: Stage 2 Engine, Stage 2 Turbo, Stage 3 Intake, Stage 2 Nitrous, Stage 4 Weight, Stage 4 Tires.
Tuning Settings: 1/4 Mile
NOS: 2.66s @ 113%
Final Drive: 4.100
1st: 3.442
2nd: 2.716
3rd: 1.700
4th: 1.344
5th: 1.000
6th: 0.760
If you guys have settings that have worked better for you, please feel free to share them on here. If you’re one of those people that keeps your settings secretly guarded, then that’s fine too. I hope my tutorial and opinions have helped you in some way as well. Have fun and good luck!
PHP & HTML Code for Displaying Country Codes
Tonight I was in the middle of coding a project I’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 “US” as the country code you’d obviously want it to display “United States” in your HTML select input. However, What happens when you get country codes like “AG, BN, EE, …etc.” Most people don’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.
Here’s a list of all the country codes I’m using:
Two Letter Country Abbreviations
|
|
HTML Country Select Input with United States Selected:
<select name="country">
<option value="AF">Afghanistan</option>
<option value="AX">Ã…Land Islands</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
<option value="AG">Antigua And Barbuda</option>
<option value="AR">Argentina</option>
<option value="AM">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BD">Bangladesh</option>
<option value="BB">Barbados</option>
<option value="BY">Belarus</option>
<option value="BE">Belgium</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivia</option>
<option value="BA">Bosnia And Herzegovina</option>
<option value="BW">Botswana</option>
<option value="BV">Bouvet Island</option>
<option value="BR">Brazil</option>
<option value="IO">British Indian Ocean Territory</option>
<option value="BN">Brunei Darussalam</option>
<option value="BG">Bulgaria</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KH">Cambodia</option>
<option value="CM">Cameroon</option>
<option value="CA">Canada</option>
<option value="CV">Cape Verde</option>
<option value="KY">Cayman Islands</option>
<option value="CF">Central African Republic</option>
<option value="TD">Chad</option>
<option value="CL">Chile</option>
<option value="CN">China</option>
<option value="CX">Christmas Island</option>
<option value="CC">Cocos (Keeling) Islands</option>
<option value="CO">Colombia</option>
<option value="KM">Comoros</option>
<option value="CG">Congo</option>
<option value="CD">Congo, The Democratic Republic Of The</option>
<option value="CK">Cook Islands</option>
<option value="CR">Costa Rica</option>
<option value="CI">Cote D'Ivoire</option>
<option value="HR">Croatia</option>
<option value="CU">Cuba</option>
<option value="CY">Cyprus</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DJ">Djibouti</option>
<option value="DM">Dominica</option>
<option value="DO">Dominican Republic</option>
<option value="EC">Ecuador</option>
<option value="EG">Egypt</option>
<option value="SV">El Salvador</option>
<option value="GQ">Equatorial Guinea</option>
<option value="ER">Eritrea</option>
<option value="EE">Estonia</option>
<option value="ET">Ethiopia</option>
<option value="FK">Falkland Islands (Malvinas)</option>
<option value="FO">Faroe Islands</option>
<option value="FJ">Fiji</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GF">French Guiana</option>
<option value="PF">French Polynesia</option>
<option value="TF">French Southern Territories</option>
<option value="GA">Gabon</option>
<option value="GM">Gambia</option>
<option value="GE">Georgia</option>
<option value="DE">Germany</option>
<option value="GH">Ghana</option>
<option value="GI">Gibraltar</option>
<option value="GR">Greece</option>
<option value="GL">Greenland</option>
<option value="GD">Grenada</option>
<option value="GP">Guadeloupe</option>
<option value="GU">Guam</option>
<option value="GT">Guatemala</option>
<option value="GG">Guernsey</option>
<option value="GN">Guinea</option>
<option value="GW">Guinea-Bissau</option>
<option value="GY">Guyana</option>
<option value="HT">Haiti</option>
<option value="HM">Heard Island And Mcdonald Islands</option>
<option value="VA">Holy See (Vatican City State)</option>
<option value="HN">Honduras</option>
<option value="HK">Hong Kong</option>
<option value="HU">Hungary</option>
<option value="IS">Iceland</option>
<option value="IN">India</option>
<option value="ID">Indonesia</option>
<option value="IR">Iran, Islamic Republic Of</option>
<option value="IQ">Iraq</option>
<option value="IE">Ireland</option>
<option value="IM">Isle Of Man</option>
<option value="IL">Israel</option>
<option value="IT">Italy</option>
<option value="JM">Jamaica</option>
<option value="JP">Japan</option>
<option value="JE">Jersey</option>
<option value="JO">Jordan</option>
<option value="KZ">Kazakhstan</option>
<option value="KE">Kenya</option>
<option value="KI">Kiribati</option>
<option value="KP">Korea, Democratic People'S Republic Of</option>
<option value="KR">Korea, Republic Of</option>
<option value="KW">Kuwait</option>
<option value="KG">Kyrgyzstan</option>
<option value="LA">Lao People'S Democratic Republic</option>
<option value="LV">Latvia</option>
<option value="LB">Lebanon</option>
<option value="LS">Lesotho</option>
<option value="LR">Liberia</option>
<option value="LY">Libyan Arab Jamahiriya</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Lithuania</option>
<option value="LU">Luxembourg</option>
<option value="MO">Macao</option>
<option value="MK">Macedonia, The Former Yugoslav Republic Of</option>
<option value="MG">Madagascar</option>
<option value="MW">Malawi</option>
<option value="MY">Malaysia</option>
<option value="MV">Maldives</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MH">Marshall Islands</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauritania</option>
<option value="MU">Mauritius</option>
<option value="YT">Mayotte</option>
<option value="MX">Mexico</option>
<option value="FM">Micronesia, Federated States Of</option>
<option value="MD">Moldova, Republic Of</option>
<option value="MC">Monaco</option>
<option value="MN">Mongolia</option>
<option value="MS">Montserrat</option>
<option value="MA">Morocco</option>
<option value="MZ">Mozambique</option>
<option value="MM">Myanmar</option>
<option value="NA">Namibia</option>
<option value="NR">Nauru</option>
<option value="NP">Nepal</option>
<option value="NL">Netherlands</option>
<option value="AN">Netherlands Antilles</option>
<option value="NC">New Caledonia</option>
<option value="NZ">New Zealand</option>
<option value="NI">Nicaragua</option>
<option value="NE">Niger</option>
<option value="NG">Nigeria</option>
<option value="NU">Niue</option>
<option value="NF">Norfolk Island</option>
<option value="MP">Northern Mariana Islands</option>
<option value="NO">Norway</option>
<option value="OM">Oman</option>
<option value="PK">Pakistan</option>
<option value="PW">Palau</option>
<option value="PS">Palestinian Territory, Occupied</option>
<option value="PA">Panama</option>
<option value="PG">Papua New Guinea</option>
<option value="PY">Paraguay</option>
<option value="PE">Peru</option>
<option value="PH">Philippines</option>
<option value="PN">Pitcairn</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="PR">Puerto Rico</option>
<option value="QA">Qatar</option>
<option value="RE">Reunion</option>
<option value="RO">Romania</option>
<option value="RU">Russian Federation</option>
<option value="RW">Rwanda</option>
<option value="SH">Saint Helena</option>
<option value="KN">Saint Kitts And Nevis</option>
<option value="LC">Saint Lucia</option>
<option value="PM">Saint Pierre And Miquelon</option>
<option value="VC">Saint Vincent And The Grenadines</option>
<option value="WS">Samoa</option>
<option value="SM">San Marino</option>
<option value="ST">Sao Tome And Principe</option>
<option value="SA">Saudi Arabia</option>
<option value="SN">Senegal</option>
<option value="CS">Serbia And Montenegro</option>
<option value="SC">Seychelles</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapore</option>
<option value="SK">Slovakia</option>
<option value="SI">Slovenia</option>
<option value="SB">Solomon Islands</option>
<option value="SO">Somalia</option>
<option value="ZA">South Africa</option>
<option value="GS">South Georgia And The South Sandwich Islands</option>
<option value="ES">Spain</option>
<option value="LK">Sri Lanka</option>
<option value="SD">Sudan</option>
<option value="SR">Suriname</option>
<option value="SJ">Svalbard And Jan Mayen</option>
<option value="SZ">Swaziland</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
<option value="SY">Syrian Arab Republic</option>
<option value="TW">Taiwan, Province Of China</option>
<option value="TJ">Tajikistan</option>
<option value="TZ">Tanzania, United Republic Of</option>
<option value="TH">Thailand</option>
<option value="TL">Timor-Leste</option>
<option value="TG">Togo</option>
<option value="TK">Tokelau</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad And Tobago</option>
<option value="TN">Tunisia</option>
<option value="TR">Turkey</option>
<option value="TM">Turkmenistan</option>
<option value="TC">Turks And Caicos Islands</option>
<option value="TV">Tuvalu</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="AE">United Arab Emirates</option>
<option value="GB">United Kingdom</option>
<option selected="selected" value="US">United States</option>
<option value="UM">United States Minor Outlying Islands</option>
<option value="UY">Uruguay</option>
<option value="UZ">Uzbekistan</option>
<option value="VU">Vanuatu</option>
<option value="VE">Venezuela</option>
<option value="VN">Viet Nam</option>
<option value="VG">Virgin Islands, British</option>
<option value="VI">Virgin Islands, U.S.</option>
<option value="WF">Wallis And Futuna</option>
<option value="EH">Western Sahara</option>
<option value="YE">Yemen</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
</select>
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’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’d still have to manually type in each country abbreviation to check them against the databases $country variable. So here’s the code I decided to use…
PHP Edit Page Country Code Select Input:
<select name="country">
<option value="AF" <?php if($country == 'AF') { echo 'selected="selected"'; } ?>>Afghanistan</option>
<option value="AX" <?php if($country == 'AX') { echo 'selected="selected"'; } ?>>Ã…Land Islands</option>
<option value="AL" <?php if($country == 'AL') { echo 'selected="selected"'; } ?>>Albania</option>
<option value="DZ" <?php if($country == 'DZ') { echo 'selected="selected"'; } ?>>Algeria</option>
<option value="AS" <?php if($country == 'AS') { echo 'selected="selected"'; } ?>>American Samoa</option>
<option value="AD" <?php if($country == 'AD') { echo 'selected="selected"'; } ?>>Andorra</option>
<option value="AO" <?php if($country == 'AO') { echo 'selected="selected"'; } ?>>Angola</option>
<option value="AI" <?php if($country == 'AI') { echo 'selected="selected"'; } ?>>Anguilla</option>
<option value="AQ" <?php if($country == 'AQ') { echo 'selected="selected"'; } ?>>Antarctica</option>
<option value="AG" <?php if($country == 'AG') { echo 'selected="selected"'; } ?>>Antigua And Barbuda</option>
<option value="AR" <?php if($country == 'AR') { echo 'selected="selected"'; } ?>>Argentina</option>
<option value="AM" <?php if($country == 'AN') { echo 'selected="selected"'; } ?>>Armenia</option>
<option value="AW" <?php if($country == 'AW') { echo 'selected="selected"'; } ?>>Aruba</option>
<option value="AU" <?php if($country == 'AU') { echo 'selected="selected"'; } ?>>Australia</option>
<option value="AT" <?php if($country == 'AT') { echo 'selected="selected"'; } ?>>Austria</option>
<option value="AZ" <?php if($country == 'AZ') { echo 'selected="selected"'; } ?>>Azerbaijan</option>
<option value="BS" <?php if($country == 'BS') { echo 'selected="selected"'; } ?>>Bahamas</option>
<option value="BH" <?php if($country == 'BH') { echo 'selected="selected"'; } ?>>Bahrain</option>
<option value="BD" <?php if($country == 'BD') { echo 'selected="selected"'; } ?>>Bangladesh</option>
<option value="BB" <?php if($country == 'BB') { echo 'selected="selected"'; } ?>>Barbados</option>
<option value="BY" <?php if($country == 'BY') { echo 'selected="selected"'; } ?>>Belarus</option>
<option value="BE" <?php if($country == 'BE') { echo 'selected="selected"'; } ?>>Belgium</option>
<option value="BZ" <?php if($country == 'BZ') { echo 'selected="selected"'; } ?>>Belize</option>
<option value="BJ" <?php if($country == 'BJ') { echo 'selected="selected"'; } ?>>Benin</option>
<option value="BM" <?php if($country == 'BM') { echo 'selected="selected"'; } ?>>Bermuda</option>
<option value="BT" <?php if($country == 'BT') { echo 'selected="selected"'; } ?>>Bhutan</option>
<option value="BO" <?php if($country == 'BO') { echo 'selected="selected"'; } ?>>Bolivia</option>
<option value="BA" <?php if($country == 'BA') { echo 'selected="selected"'; } ?>>Bosnia And Herzegovina</option>
<option value="BW" <?php if($country == 'BW') { echo 'selected="selected"'; } ?>>Botswana</option>
<option value="BV" <?php if($country == 'BV') { echo 'selected="selected"'; } ?>>Bouvet Island</option>
<option value="BR" <?php if($country == 'BR') { echo 'selected="selected"'; } ?>>Brazil</option>
<option value="IO" <?php if($country == 'IO') { echo 'selected="selected"'; } ?>>British Indian Ocean Territory</option>
<option value="BN" <?php if($country == 'BN') { echo 'selected="selected"'; } ?>>Brunei Darussalam</option>
<option value="BG" <?php if($country == 'BG') { echo 'selected="selected"'; } ?>>Bulgaria</option>
<option value="BF" <?php if($country == 'BF') { echo 'selected="selected"'; } ?>>Burkina Faso</option>
<option value="BI" <?php if($country == 'BI') { echo 'selected="selected"'; } ?>>Burundi</option>
<option value="KH" <?php if($country == 'KH') { echo 'selected="selected"'; } ?>>Cambodia</option>
<option value="CM" <?php if($country == 'CM') { echo 'selected="selected"'; } ?>>Cameroon</option>
<option value="CA" <?php if($country == 'CA') { echo 'selected="selected"'; } ?>>Canada</option>
<option value="CV" <?php if($country == 'CV') { echo 'selected="selected"'; } ?>>Cape Verde</option>
<option value="KY" <?php if($country == 'KY') { echo 'selected="selected"'; } ?>>Cayman Islands</option>
<option value="CF" <?php if($country == 'CF') { echo 'selected="selected"'; } ?>>Central African Republic</option>
<option value="TD" <?php if($country == 'TD') { echo 'selected="selected"'; } ?>>Chad</option>
<option value="CL" <?php if($country == 'CL') { echo 'selected="selected"'; } ?>>Chile</option>
<option value="CN" <?php if($country == 'CN') { echo 'selected="selected"'; } ?>>China</option>
<option value="CX" <?php if($country == 'CX') { echo 'selected="selected"'; } ?>>Christmas Island</option>
<option value="CC" <?php if($country == 'CC') { echo 'selected="selected"'; } ?>>Cocos (Keeling) Islands</option>
<option value="CO" <?php if($country == 'CO') { echo 'selected="selected"'; } ?>>Colombia</option>
<option value="KM" <?php if($country == 'KM') { echo 'selected="selected"'; } ?>>Comoros</option>
<option value="CG" <?php if($country == 'CG') { echo 'selected="selected"'; } ?>>Congo</option>
<option value="CD" <?php if($country == 'CD') { echo 'selected="selected"'; } ?>>Congo, The Democratic Republic Of The</option>
<option value="CK" <?php if($country == 'CK') { echo 'selected="selected"'; } ?>>Cook Islands</option>
<option value="CR" <?php if($country == 'CR') { echo 'selected="selected"'; } ?>>Costa Rica</option>
<option value="CI" <?php if($country == 'CI') { echo 'selected="selected"'; } ?>>Cote D'Ivoire</option>
<option value="HR" <?php if($country == 'HR') { echo 'selected="selected"'; } ?>>Croatia</option>
<option value="CU" <?php if($country == 'CU') { echo 'selected="selected"'; } ?>>Cuba</option>
<option value="CY" <?php if($country == 'CY') { echo 'selected="selected"'; } ?>>Cyprus</option>
<option value="CZ" <?php if($country == 'CZ') { echo 'selected="selected"'; } ?>>Czech Republic</option>
<option value="DK" <?php if($country == 'DK') { echo 'selected="selected"'; } ?>>Denmark</option>
<option value="DJ" <?php if($country == 'DJ') { echo 'selected="selected"'; } ?>>Djibouti</option>
<option value="DM" <?php if($country == 'DM') { echo 'selected="selected"'; } ?>>Dominica</option>
<option value="DO" <?php if($country == 'DO') { echo 'selected="selected"'; } ?>>Dominican Republic</option>
<option value="EC" <?php if($country == 'EC') { echo 'selected="selected"'; } ?>>Ecuador</option>
<option value="EG" <?php if($country == 'EG') { echo 'selected="selected"'; } ?>>Egypt</option>
<option value="SV" <?php if($country == 'SV') { echo 'selected="selected"'; } ?>>El Salvador</option>
<option value="GQ" <?php if($country == 'GQ') { echo 'selected="selected"'; } ?>>Equatorial Guinea</option>
<option value="ER" <?php if($country == 'ER') { echo 'selected="selected"'; } ?>>Eritrea</option>
<option value="EE" <?php if($country == 'EE') { echo 'selected="selected"'; } ?>>Estonia</option>
<option value="ET" <?php if($country == 'ET') { echo 'selected="selected"'; } ?>>Ethiopia</option>
<option value="FK" <?php if($country == 'FK') { echo 'selected="selected"'; } ?>>Falkland Islands (Malvinas)</option>
<option value="FO" <?php if($country == 'FO') { echo 'selected="selected"'; } ?>>Faroe Islands</option>
<option value="FJ" <?php if($country == 'FJ') { echo 'selected="selected"'; } ?>>Fiji</option>
<option value="FI" <?php if($country == 'FI') { echo 'selected="selected"'; } ?>>Finland</option>
<option value="FR" <?php if($country == 'FR') { echo 'selected="selected"'; } ?>>France</option>
<option value="GF" <?php if($country == 'GF') { echo 'selected="selected"'; } ?>>French Guiana</option>
<option value="PF" <?php if($country == 'PF') { echo 'selected="selected"'; } ?>>French Polynesia</option>
<option value="TF" <?php if($country == 'TF') { echo 'selected="selected"'; } ?>>French Southern Territories</option>
<option value="GA" <?php if($country == 'GA') { echo 'selected="selected"'; } ?>>Gabon</option>
<option value="GM" <?php if($country == 'GM') { echo 'selected="selected"'; } ?>>Gambia</option>
<option value="GE" <?php if($country == 'GE') { echo 'selected="selected"'; } ?>>Georgia</option>
<option value="DE" <?php if($country == 'DE') { echo 'selected="selected"'; } ?>>Germany</option>
<option value="GH" <?php if($country == 'GH') { echo 'selected="selected"'; } ?>>Ghana</option>
<option value="GI" <?php if($country == 'GI') { echo 'selected="selected"'; } ?>>Gibraltar</option>
<option value="GR" <?php if($country == 'GR') { echo 'selected="selected"'; } ?>>Greece</option>
<option value="GL" <?php if($country == 'GL') { echo 'selected="selected"'; } ?>>Greenland</option>
<option value="GD" <?php if($country == 'GD') { echo 'selected="selected"'; } ?>>Grenada</option>
<option value="GP" <?php if($country == 'GP') { echo 'selected="selected"'; } ?>>Guadeloupe</option>
<option value="GU" <?php if($country == 'GU') { echo 'selected="selected"'; } ?>>Guam</option>
<option value="GT" <?php if($country == 'GT') { echo 'selected="selected"'; } ?>>Guatemala</option>
<option value="GG" <?php if($country == 'GG') { echo 'selected="selected"'; } ?>>Guernsey</option>
<option value="GN" <?php if($country == 'GN') { echo 'selected="selected"'; } ?>>Guinea</option>
<option value="GW" <?php if($country == 'GW') { echo 'selected="selected"'; } ?>>Guinea-Bissau</option>
<option value="GY" <?php if($country == 'GY') { echo 'selected="selected"'; } ?>>Guyana</option>
<option value="HT" <?php if($country == 'HT') { echo 'selected="selected"'; } ?>>Haiti</option>
<option value="HM" <?php if($country == 'HM') { echo 'selected="selected"'; } ?>>Heard Island And Mcdonald Islands</option>
<option value="VA" <?php if($country == 'VA') { echo 'selected="selected"'; } ?>>Holy See (Vatican City State)</option>
<option value="HN" <?php if($country == 'HN') { echo 'selected="selected"'; } ?>>Honduras</option>
<option value="HK" <?php if($country == 'HK') { echo 'selected="selected"'; } ?>>Hong Kong</option>
<option value="HU" <?php if($country == 'HU') { echo 'selected="selected"'; } ?>>Hungary</option>
<option value="IS" <?php if($country == 'IS') { echo 'selected="selected"'; } ?>>Iceland</option>
<option value="IN" <?php if($country == 'IN') { echo 'selected="selected"'; } ?>>India</option>
<option value="ID" <?php if($country == 'ID') { echo 'selected="selected"'; } ?>>Indonesia</option>
<option value="IR" <?php if($country == 'IR') { echo 'selected="selected"'; } ?>>Iran, Islamic Republic Of</option>
<option value="IQ" <?php if($country == 'IQ') { echo 'selected="selected"'; } ?>>Iraq</option>
<option value="IE" <?php if($country == 'IE') { echo 'selected="selected"'; } ?>>Ireland</option>
<option value="IM" <?php if($country == 'IM') { echo 'selected="selected"'; } ?>>Isle Of Man</option>
<option value="IL" <?php if($country == 'IL') { echo 'selected="selected"'; } ?>>Israel</option>
<option value="IT" <?php if($country == 'IT') { echo 'selected="selected"'; } ?>>Italy</option>
<option value="JM" <?php if($country == 'JM') { echo 'selected="selected"'; } ?>>Jamaica</option>
<option value="JP" <?php if($country == 'JP') { echo 'selected="selected"'; } ?>>Japan</option>
<option value="JE" <?php if($country == 'JE') { echo 'selected="selected"'; } ?>>Jersey</option>
<option value="JO" <?php if($country == 'JO') { echo 'selected="selected"'; } ?>>Jordan</option>
<option value="KZ" <?php if($country == 'KZ') { echo 'selected="selected"'; } ?>>Kazakhstan</option>
<option value="KE" <?php if($country == 'KE') { echo 'selected="selected"'; } ?>>Kenya</option>
<option value="KI" <?php if($country == 'KI') { echo 'selected="selected"'; } ?>>Kiribati</option>
<option value="KP" <?php if($country == 'KP') { echo 'selected="selected"'; } ?>>Korea, Democratic People'S Republic Of</option>
<option value="KR" <?php if($country == 'KR') { echo 'selected="selected"'; } ?>>Korea, Republic Of</option>
<option value="KW" <?php if($country == 'KW') { echo 'selected="selected"'; } ?>>Kuwait</option>
<option value="KG" <?php if($country == 'KG') { echo 'selected="selected"'; } ?>>Kyrgyzstan</option>
<option value="LA" <?php if($country == 'LA') { echo 'selected="selected"'; } ?>>Lao People'S Democratic Republic</option>
<option value="LV" <?php if($country == 'LV') { echo 'selected="selected"'; } ?>>Latvia</option>
<option value="LB" <?php if($country == 'LB') { echo 'selected="selected"'; } ?>>Lebanon</option>
<option value="LS" <?php if($country == 'LS') { echo 'selected="selected"'; } ?>>Lesotho</option>
<option value="LR" <?php if($country == 'LR') { echo 'selected="selected"'; } ?>>Liberia</option>
<option value="LY" <?php if($country == 'LY') { echo 'selected="selected"'; } ?>>Libyan Arab Jamahiriya</option>
<option value="LI" <?php if($country == 'LI') { echo 'selected="selected"'; } ?>>Liechtenstein</option>
<option value="LT" <?php if($country == 'LT') { echo 'selected="selected"'; } ?>>Lithuania</option>
<option value="LU" <?php if($country == 'LU') { echo 'selected="selected"'; } ?>>Luxembourg</option>
<option value="MO" <?php if($country == 'MO') { echo 'selected="selected"'; } ?>>Macao</option>
<option value="MK" <?php if($country == 'MK') { echo 'selected="selected"'; } ?>>Macedonia, The Former Yugoslav Republic Of</option>
<option value="MG" <?php if($country == 'MG') { echo 'selected="selected"'; } ?>>Madagascar</option>
<option value="MW" <?php if($country == 'MW') { echo 'selected="selected"'; } ?>>Malawi</option>
<option value="MY" <?php if($country == 'MY') { echo 'selected="selected"'; } ?>>Malaysia</option>
<option value="MV" <?php if($country == 'MV') { echo 'selected="selected"'; } ?>>Maldives</option>
<option value="ML" <?php if($country == 'ML') { echo 'selected="selected"'; } ?>>Mali</option>
<option value="MT" <?php if($country == 'MT') { echo 'selected="selected"'; } ?>>Malta</option>
<option value="MH" <?php if($country == 'MH') { echo 'selected="selected"'; } ?>>Marshall Islands</option>
<option value="MQ" <?php if($country == 'MQ') { echo 'selected="selected"'; } ?>>Martinique</option>
<option value="MR" <?php if($country == 'MR') { echo 'selected="selected"'; } ?>>Mauritania</option>
<option value="MU" <?php if($country == 'MU') { echo 'selected="selected"'; } ?>>Mauritius</option>
<option value="YT" <?php if($country == 'YT') { echo 'selected="selected"'; } ?>>Mayotte</option>
<option value="MX" <?php if($country == 'MX') { echo 'selected="selected"'; } ?>>Mexico</option>
<option value="FM" <?php if($country == 'FM') { echo 'selected="selected"'; } ?>>Micronesia, Federated States Of</option>
<option value="MD" <?php if($country == 'MD') { echo 'selected="selected"'; } ?>>Moldova, Republic Of</option>
<option value="MC" <?php if($country == 'MC') { echo 'selected="selected"'; } ?>>Monaco</option>
<option value="MN" <?php if($country == 'MN') { echo 'selected="selected"'; } ?>>Mongolia</option>
<option value="MS" <?php if($country == 'MS') { echo 'selected="selected"'; } ?>>Montserrat</option>
<option value="MA" <?php if($country == 'MA') { echo 'selected="selected"'; } ?>>Morocco</option>
<option value="MZ" <?php if($country == 'MZ') { echo 'selected="selected"'; } ?>>Mozambique</option>
<option value="MM" <?php if($country == 'MM') { echo 'selected="selected"'; } ?>>Myanmar</option>
<option value="NA" <?php if($country == 'NA') { echo 'selected="selected"'; } ?>>Namibia</option>
<option value="NR" <?php if($country == 'NR') { echo 'selected="selected"'; } ?>>Nauru</option>
<option value="NP" <?php if($country == 'NP') { echo 'selected="selected"'; } ?>>Nepal</option>
<option value="NL" <?php if($country == 'NL') { echo 'selected="selected"'; } ?>>Netherlands</option>
<option value="AN" <?php if($country == 'AN') { echo 'selected="selected"'; } ?>>Netherlands Antilles</option>
<option value="NC" <?php if($country == 'NC') { echo 'selected="selected"'; } ?>>New Caledonia</option>
<option value="NZ" <?php if($country == 'NZ') { echo 'selected="selected"'; } ?>>New Zealand</option>
<option value="NI" <?php if($country == 'NI') { echo 'selected="selected"'; } ?>>Nicaragua</option>
<option value="NE" <?php if($country == 'NE') { echo 'selected="selected"'; } ?>>Niger</option>
<option value="NG" <?php if($country == 'NG') { echo 'selected="selected"'; } ?>>Nigeria</option>
<option value="NU" <?php if($country == 'NU') { echo 'selected="selected"'; } ?>>Niue</option>
<option value="NF" <?php if($country == 'NF') { echo 'selected="selected"'; } ?>>Norfolk Island</option>
<option value="MP" <?php if($country == 'MP') { echo 'selected="selected"'; } ?>>Northern Mariana Islands</option>
<option value="NO" <?php if($country == 'NO') { echo 'selected="selected"'; } ?>>Norway</option>
<option value="OM" <?php if($country == 'OM') { echo 'selected="selected"'; } ?>>Oman</option>
<option value="PK" <?php if($country == 'PK') { echo 'selected="selected"'; } ?>>Pakistan</option>
<option value="PW" <?php if($country == 'PW') { echo 'selected="selected"'; } ?>>Palau</option>
<option value="PS" <?php if($country == 'PS') { echo 'selected="selected"'; } ?>>Palestinian Territory, Occupied</option>
<option value="PA" <?php if($country == 'PA') { echo 'selected="selected"'; } ?>>Panama</option>
<option value="PG" <?php if($country == 'PG') { echo 'selected="selected"'; } ?>>Papua New Guinea</option>
<option value="PY" <?php if($country == 'PY') { echo 'selected="selected"'; } ?>>Paraguay</option>
<option value="PE" <?php if($country == 'PE') { echo 'selected="selected"'; } ?>>Peru</option>
<option value="PH" <?php if($country == 'PH') { echo 'selected="selected"'; } ?>>Philippines</option>
<option value="PN" <?php if($country == 'PN') { echo 'selected="selected"'; } ?>>Pitcairn</option>
<option value="PL" <?php if($country == 'PL') { echo 'selected="selected"'; } ?>>Poland</option>
<option value="PT" <?php if($country == 'PT') { echo 'selected="selected"'; } ?>>Portugal</option>
<option value="PR" <?php if($country == 'PR') { echo 'selected="selected"'; } ?>>Puerto Rico</option>
<option value="QA" <?php if($country == 'QA') { echo 'selected="selected"'; } ?>>Qatar</option>
<option value="RE" <?php if($country == 'RE') { echo 'selected="selected"'; } ?>>Reunion</option>
<option value="RO" <?php if($country == 'RO') { echo 'selected="selected"'; } ?>>Romania</option>
<option value="RU" <?php if($country == 'RU') { echo 'selected="selected"'; } ?>>Russian Federation</option>
<option value="RW" <?php if($country == 'RW') { echo 'selected="selected"'; } ?>>Rwanda</option>
<option value="SH" <?php if($country == 'SH') { echo 'selected="selected"'; } ?>>Saint Helena</option>
<option value="KN" <?php if($country == 'KN') { echo 'selected="selected"'; } ?>>Saint Kitts And Nevis</option>
<option value="LC" <?php if($country == 'LC') { echo 'selected="selected"'; } ?>>Saint Lucia</option>
<option value="PM" <?php if($country == 'PM') { echo 'selected="selected"'; } ?>>Saint Pierre And Miquelon</option>
<option value="VC" <?php if($country == 'VC') { echo 'selected="selected"'; } ?>>Saint Vincent And The Grenadines</option>
<option value="WS" <?php if($country == 'WS') { echo 'selected="selected"'; } ?>>Samoa</option>
<option value="SM" <?php if($country == 'SM') { echo 'selected="selected"'; } ?>>San Marino</option>
<option value="ST" <?php if($country == 'ST') { echo 'selected="selected"'; } ?>>Sao Tome And Principe</option>
<option value="SA" <?php if($country == 'SA') { echo 'selected="selected"'; } ?>>Saudi Arabia</option>
<option value="SN" <?php if($country == 'SN') { echo 'selected="selected"'; } ?>>Senegal</option>
<option value="CS" <?php if($country == 'CS') { echo 'selected="selected"'; } ?>>Serbia And Montenegro</option>
<option value="SC" <?php if($country == 'SC') { echo 'selected="selected"'; } ?>>Seychelles</option>
<option value="SL" <?php if($country == 'SL') { echo 'selected="selected"'; } ?>>Sierra Leone</option>
<option value="SG" <?php if($country == 'SG') { echo 'selected="selected"'; } ?>>Singapore</option>
<option value="SK" <?php if($country == 'SK') { echo 'selected="selected"'; } ?>>Slovakia</option>
<option value="SI" <?php if($country == 'SI') { echo 'selected="selected"'; } ?>>Slovenia</option>
<option value="SB" <?php if($country == 'SB') { echo 'selected="selected"'; } ?>>Solomon Islands</option>
<option value="SO" <?php if($country == 'SO') { echo 'selected="selected"'; } ?>>Somalia</option>
<option value="ZA" <?php if($country == 'ZA') { echo 'selected="selected"'; } ?>>South Africa</option>
<option value="GS" <?php if($country == 'GS') { echo 'selected="selected"'; } ?>>South Georgia And The South Sandwich Islands</option>
<option value="ES" <?php if($country == 'ES') { echo 'selected="selected"'; } ?>>Spain</option>
<option value="LK" <?php if($country == 'LK') { echo 'selected="selected"'; } ?>>Sri Lanka</option>
<option value="SD" <?php if($country == 'SD') { echo 'selected="selected"'; } ?>>Sudan</option>
<option value="SR" <?php if($country == 'SR') { echo 'selected="selected"'; } ?>>Suriname</option>
<option value="SJ" <?php if($country == 'SJ') { echo 'selected="selected"'; } ?>>Svalbard And Jan Mayen</option>
<option value="SZ" <?php if($country == 'SZ') { echo 'selected="selected"'; } ?>>Swaziland</option>
<option value="SE" <?php if($country == 'SE') { echo 'selected="selected"'; } ?>>Sweden</option>
<option value="CH" <?php if($country == 'CH') { echo 'selected="selected"'; } ?>>Switzerland</option>
<option value="SY" <?php if($country == 'SY') { echo 'selected="selected"'; } ?>>Syrian Arab Republic</option>
<option value="TW" <?php if($country == 'TW') { echo 'selected="selected"'; } ?>>Taiwan, Province Of China</option>
<option value="TJ" <?php if($country == 'TJ') { echo 'selected="selected"'; } ?>>Tajikistan</option>
<option value="TZ" <?php if($country == 'TZ') { echo 'selected="selected"'; } ?>>Tanzania, United Republic Of</option>
<option value="TH" <?php if($country == 'TH') { echo 'selected="selected"'; } ?>>Thailand</option>
<option value="TL" <?php if($country == 'TL') { echo 'selected="selected"'; } ?>>Timor-Leste</option>
<option value="TG" <?php if($country == 'TG') { echo 'selected="selected"'; } ?>>Togo</option>
<option value="TK" <?php if($country == 'TK') { echo 'selected="selected"'; } ?>>Tokelau</option>
<option value="TO" <?php if($country == 'TO') { echo 'selected="selected"'; } ?>>Tonga</option>
<option value="TT" <?php if($country == 'TT') { echo 'selected="selected"'; } ?>>Trinidad And Tobago</option>
<option value="TN" <?php if($country == 'TN') { echo 'selected="selected"'; } ?>>Tunisia</option>
<option value="TR" <?php if($country == 'TR') { echo 'selected="selected"'; } ?>>Turkey</option>
<option value="TM" <?php if($country == 'TM') { echo 'selected="selected"'; } ?>>Turkmenistan</option>
<option value="TC" <?php if($country == 'TC') { echo 'selected="selected"'; } ?>>Turks And Caicos Islands</option>
<option value="TV" <?php if($country == 'TV') { echo 'selected="selected"'; } ?>>Tuvalu</option>
<option value="UG" <?php if($country == 'UG') { echo 'selected="selected"'; } ?>>Uganda</option>
<option value="UA" <?php if($country == 'UA') { echo 'selected="selected"'; } ?>>Ukraine</option>
<option value="AE" <?php if($country == 'AE') { echo 'selected="selected"'; } ?>>United Arab Emirates</option>
<option value="GB" <?php if($country == 'GB') { echo 'selected="selected"'; } ?>>United Kingdom</option>
<option value="US" <?php if($country == 'US') { echo 'selected="selected"'; } ?>>United States</option>
<option value="UM" <?php if($country == 'UM') { echo 'selected="selected"'; } ?>>United States Minor Outlying Islands</option>
<option value="UY" <?php if($country == 'UY') { echo 'selected="selected"'; } ?>>Uruguay</option>
<option value="UZ" <?php if($country == 'UZ') { echo 'selected="selected"'; } ?>>Uzbekistan</option>
<option value="VU" <?php if($country == 'VU') { echo 'selected="selected"'; } ?>>Vanuatu</option>
<option value="VE" <?php if($country == 'VE') { echo 'selected="selected"'; } ?>>Venezuela</option>
<option value="VN" <?php if($country == 'VN') { echo 'selected="selected"'; } ?>>Viet Nam</option>
<option value="VG" <?php if($country == 'VG') { echo 'selected="selected"'; } ?>>Virgin Islands, British</option>
<option value="VI" <?php if($country == 'VI') { echo 'selected="selected"'; } ?>>Virgin Islands, U.S.</option>
<option value="WF" <?php if($country == 'WF') { echo 'selected="selected"'; } ?>>Wallis And Futuna</option>
<option value="EH" <?php if($country == 'EH') { echo 'selected="selected"'; } ?>>Western Sahara</option>
<option value="YE" <?php if($country == 'YE') { echo 'selected="selected"'; } ?>>Yemen</option>
<option value="ZM" <?php if($country == 'ZM') { echo 'selected="selected"'; } ?>>Zambia</option>
<option value="ZW" <?php if($country == 'ZW') { echo 'selected="selected"'; } ?>>Zimbabwe</option>
</select>
Hopefully I’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.











