Without seeing the rest of the code it would be hard to say.

You will have to use javascript to turn the div back to display from none.

Are you writing the entire html from the php program? If not just add the javascript in html to display the div you want. How are you determining the country code?