Hi hope someone can help me with the following
I am creating a webpage in different language with ip2country.

i use the following code

COMMON.PHP

session_start();
header('Cache-control: private'); // IE 6 FIX
header('Content-Type: text/html; charset=UTF-8');
if(isSet($_GET['lang']))
{
$lang = $_GET['lang'];

// register the session and set the cookie
$_SESSION['lang'] = $lang;



setcookie("lang",$lang, time()+3600*24*365);


}
else if(isSet($_SESSION['lang']))
{
$lang = $_SESSION['lang'];
}
else if(isSet($_COOKIE['lang']))
{
$lang = $_COOKIE['lang'];
}
else
{
$lang = 'nl';
}

switch ($lang) {    

    case 'nl':
  $lang_file = 'lang.nl.php';
  break;

 case 'de':
  $lang_file = 'lang.de.php';
  break;

  case 'en':
  $lang_file = 'lang.en.php';
  break;

case 'australie':
  $lang_file = 'lang.en.php';
  break;

case 'usa':
  $lang_file = 'lang.en.php';
  break;

      default:
  $lang_file = 'lang.nl.php';

  }
include_once 'languages/'.$lang_file;
?>

INDEX.PHP

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title><?php echo $lang['PAGE_TITLE']; ?></title>
<link href="css/stylea.css" rel="stylesheet" type="text/css" media="all">

<link rel="stylesheet" href="css/styles.css" type="text/css" >
<style type="text/css">
    #drop-down-menu{margin-left:20px}
    ul{
        font-weight:bold;color:#ffffff;
        margin:0;
        padding:0;
        list-style:none}
    ul li{
        display:block;
        position:relative;
        float:left}
    li ul{display:none}
    ul li a{
        display:block;
        margin-left:1px;
        text-decoration:none;
        color:#ffffff;
        border-top:1px solid #B75963;
        padding: 5px 15px 5px 15px;
        background:#6E5463;
        white-space:nowrap}
    ul li a:hover{background:#985963;color:inherit}
    li:hover ul{ 
        display:block; 
        position:absolute}
    li:hover li{ 
        font-size:70%;
        clear:left; 
        width:20em}
    li:hover a{ background:#985963;color:inherit}
    li:hover li a:hover{background:#B75963;color:inherit}
    .clear_all{clear:both;height:0.2em;}
    </style>
    <script type="text/javascript" src="js/css-pop.js"></script>
    <style type="text/css">
    /* Remove margins from the 'html' and 'body' tags, and ensure the page takes up full screen height */
    html, body {height:100%; margin:0; padding:0;}
    /* Set the position and dimensions of the background image. */
    #page-background {position:fixed; top:0; left:0; width:100%; height:100%;}
    /* Specify the position and layering for the content that needs to appear in front of the background image. Must have a higher z-index value than the background image. Also add some padding to compensate for removing the margin from the 'html' and 'body' tags. */
    #content {position:relative; z-index:1; padding:10px;}
    </style>
    <!-- The above code doesn't work in Internet Explorer 6. To address this, we use a conditional comment to specify an alternative style sheet for IE 6 -->
    <!--[if IE 6]>
    <style type="text/css">
    html {overflow-y:hidden;}
    body {overflow-y:auto;}
    #page-background {position:absolute; z-index:-1;}
    #content {position:static;padding:10px;}
    </style>
    <![endif]-->
    </head>

<body class="thrColFixHdr" onkeydown = "return (event.keyCode!=13)">

<div id="page-background"><img src="achtergrond_foto/lonely_tree2.jpg" width="100%" height="100%" alt=""></div>
    <div id="content">
<div id="container">

  <div id="header">      
  <?php
  include_once('ip2c/ip2country.php');
  $ip2c=new ip2country();
  $ip2c->mysql_host='localhost';
  $ip2c->db_user='tadada';
  $ip2c->db_pass='tatatata';
  $ip2c->db_name='i_dont_tell';
  $ip2c->table_name='ip2c';
  $countryname = $ip2c->get_country_name();
  if($countryname == "Germany")
  {
  ?>
  <src="index.php?lang=nl">
  <?php
  }
  if($countryname == "Netherlands" || $countryname == "Belgium")
  {
  ?>
  <src="index.php?lang=de">
  <?php
  }
  if($countryname == "United Kingdom" || $countryname == "Ireland" || $countryname == "United States" || $countryname == "Australia" || $countryname == "New Zealand")
  {
  ?>
  <src="index.php?lang=en">
  <?php
  }

  //to test echo countryname
  echo $countryname;
  ?>


  <center><h4><?php echo $lang['HEADER_TITLE_A']; echo $lang['HEADER_GAST']; echo"<br>"; echo $lang['HEADER_TITLE_B'];echo"<br>"; echo $lang['HEADER_TITLE_C']; ?></h4></center>
<div>

  <div>
    <ul id="drop-down-menu">
      <li><a href="#"><?php echo $lang['MENU_HOME']; ?></a></li>
      <li><a href="#"><?php echo $lang['MENU_CONTACT']; ?></a></li>
      <li><a href="#"><?php echo $lang['MENU_GUESTBOOK']; ?></a></li>
      <li><a href="#"><?php echo $lang['MENU_LINKS']; ?></a></li>    
       <li><a href="logina/main.php"><?php echo $lang['MENU_LOGIN']; ?></a></li>
    </ul>
     <p class="clear_all"></p>
  </div></div>

   <!-- end #header --></div>

 <div  id="sidebar1">
     <div style="font-size:10px; margin-left:5px;" ><?php echo $lang['KOLOMLINKS']; ?> </div>
 </div> <!-- end #sidebar1 -->


<div id="sidebar2">
    <div style="font-size:10px; margin-left:5px;" ><?php echo $lang['KOLOMRECHTS']; ?></div>

</div>  <!-- end #sidebar2 -->

<div id="mainContent">
<?php
    include("login/config.php");

        $result3 = mysql_query("SELECT * FROM stamboom_dohmen", $bd);
        $num_rows3 = mysql_num_rows($result3);
        if ($num_rows3 == 0)
        {
             $lang['FOTO_TAAL']

            ?>

            <!-- end #mainContent --></div>
    <!-- Dit wiselement dient onmiddellijk te volgen op het element div voor #mainContent om het element div voor #container te dwingen om alle zwevende elementen van een lager niveau te bevatten --><br class="clearfloat" >

<!-- end #container --></div></div>
</body>
</html>

lang.de.php

<?php
/* 
-----------------
Language: German
-----------------
*/

$lang = array();

$lang['ALERTBOX_A'] = 'Hierzu müssen Sie zunächst eingeloggt sein.';

$lang['PAGE_TITLE'] = 'Stammbaum Dohmen';

$lang['HEADER_TITLE'] = 'Stammbaum Dohmen';
$lang['HEADER_TITLE_A'] = 'Hallo ';
$lang['HEADER_GAST'] = 'Gast ';
$lang['HEADER_TITLE_B'] = 'wilkommen auf der Genealogie Seite der';
$lang['HEADER_TITLE_C'] = 'Familie Dohmen';
$lang['HEADER_TITLE_D'] = 'Willkommen auf der Genealogie Seite der';

$lang['SITE_NAME'] = 'My Website';
$lang['SLOGAN'] = 'My slogan here';
$lang['HEADING'] = 'Welkom bij de genealogie pagina van de Familie Dohmen';


// Menu
$lang['MENU_HOME'] = 'Home';
$lang['MENU_CONTACT'] = 'Kontakt';
$lang['MENU_GUESTBOOK'] = 'Gästebuch';
$lang['MENU_landen'] = 'Länder';
$lang['MENU_LINKS'] = 'Links';
$lang['MENU_LOGIN'] = 'Anmelden';
$lang['MENU_LOGOUT'] = 'Abmelden';
$lang['MENU_INGELOGD'] = 'Angemeldet';
$lang['MENU_UITGELOGD'] = 'Abgemeldent';

// Menu loggedin
$lang['LOGGEDIN-MENU_HOME'] = 'Home';
$lang['LOGGEDIN-MENU_CONTACT'] = 'Kontakt';
$lang['LOGGEDIN-MENU_GUESTBOOK'] = 'Gästebuch';
$lang['LOGGEDIN-MENU_landen'] = 'Länder';
$lang['LOGGEDIN-MENU_LINKS'] = 'Links';
$lang['LOGGEDIN-MENU_LOGIN'] = 'Anmelden';
$lang['LOGGEDIN-MENU_LOGOUT'] = 'Abmelden';

// Menu loggedin-dropdown-account

$lang['LOGGEDIN-DROPDOWN-MY-ACCOUNT'] = 'Mein Account';
$lang['LOGGEDIN-DROPDOWN-EDIT-ACCOUNT'] = 'Mein Account bearbeiten';
$lang['LOGGEDIN-MENU_ADMIN_CENTER'] = 'Admin Center';
$lang['LOGGEDIN-MENU_landen'] = 'Länder';
$lang['LOGGEDIN-MENU_LINKS'] = 'Links';
$lang['LOGGEDIN-MENU_LOGIN'] = 'Account';
$lang['LOGGEDIN-MENU_LOGOUT'] = 'Abmelden';

//linker kolom
$lang['KOLOMLINKS'] = 'Lebenden Personen.';

//rechter kolom
$lang['KOLOMRECHTS'] = 'Verstorbene Personen';


//als geen data in stamboom
$lang['ALS_GEEN_DATA_IN_STAMBOOM'] = 'Es gibt noch keine Menschen in Ihrem Stammbaum.<br>Melden Sie sich zuerst an, um zichselbst hinzuzufügen.';

//welkom admin geen keuze gemaakt
$lang['WELKOM_ADMIN_GEENKEUZE'] = 'Sie hasben keine Wahl gemacht!<br />
Sie werden in etwa 6 Sekunden<br />
zurückgeführt..<br />
Wenn nicht klicken Sie auf Zurück.';
$lang['WELKOM_ADMIN_TERUG'] = 'Zurück';

// mijzelf toevoegen
$lang['VUL_JEZELF_IN'] = 'Geben Sie Unten alle Informationen.';
// partner toevoegen
$lang['VUL_PARTNER_IN'] = 'Geben Sie hierunten alle Daten des Partners.';

// scrol tabel links en rechts duits
$lang['SCROL_TABEL_LINKS_ACHTERNAAM'] = 'Nachname';
$lang['SCROL_TABEL_LINKS_VOORNAAM'] = 'Geburts Buchstaben';
$lang['SCROL_TABEL_LINKS_ROEPNAAM'] = 'Vorname';
$lang['SCROL_TABEL_LINKS_BIRTHDATE'] = 'Geburtsdatum';

// POPUPDIV
$lang['POPUPDIV_ACHTERNAAM'] = 'Achternaam';
$lang['POPUPDIV_VOORNAAM'] = 'Geboorte naam';
$lang['POPUPDIV_ROEPNAAM'] = 'Roeppnaam';
$lang['POPUPDIV_GEBOORTE_DATUM'] = 'Geboorte Datum';

// Naam van weekdagen in duits
$lang['POPUPDIV_ZONDAG'] = 'Sonntag';
$lang['POPUPDIV_MAANDAG'] = 'Montag';
$lang['POPUPDIV_DINSDAG'] = 'Dienstag';
$lang['POPUPDIV_WOENSDAG'] = 'Mittwoch';
$lang['POPUPDIV_DONDERDAG'] = 'Donnerstag';
$lang['POPUPDIV_VRIJDAG'] = 'Freitag';
$lang['POPUPDIV_ZATERDAG'] = 'Samstag';

// Naam van maanden in duits
$lang['POPUPDIV_JANUARI'] = 'Januar';
$lang['POPUPDIV_FEBRUARI'] = 'Februar';
$lang['POPUPDIV_MAART'] = 'März';
$lang['POPUPDIV_APRIL'] = 'April';
$lang['POPUPDIV_MEI'] = 'Mai';
$lang['POPUPDIV_JUNI'] = 'Juni';
$lang['POPUPDIV_JULI'] = 'Juli';
$lang['POPUPDIV_AUGUSTUS'] = 'August';
$lang['POPUPDIV_SEPTEMBER'] = 'September';
$lang['POPUPDIV_OKTOBER'] = 'Oktober ';
$lang['POPUPDIV_NOVEMBER'] = 'November ';
$lang['POPUPDIV_DECEMBER'] = 'Dezember ';

// verboden toegang
$lang['FORBIDDEN_PAGE'] = '<div><a href="http://www.dohmen-stamboom.nl/test/index.php"  >Klicken Sie hier, wenn Sie nicht warten möchten.</a></div><br/><div><img src="image_acess_denied/acces_denied_de.gif"  alt="" ></div>;'; 

$lang['FOTO_TAAL'] = '<center><img src="index_text/stamboom_de.gif" alt="" style="border:none;" ></center>';   

?>

lang.en.php

<?php
/* 
------------------
Language: English
------------------
*/

$lang = array();

$lang['ALERTBOX_A'] = 'To do this, you must first be logged in.';

$lang['PAGE_TITLE'] = 'Fam. Tree Dohmen';
$lang['HEADER_TITLE'] = 'Welcome ';
$lang['HEADER_TITLE_A'] = 'Hello ';
$lang['HEADER_GAST'] = 'Guest ';
$lang['HEADER_TITLE_B'] = 'welcome to the genealogical page of the';
$lang['HEADER_TITLE_C'] = 'Family Dohmen';
$lang['HEADER_TITLE_D'] = 'Welcome to the genealogical page of the';

$lang['SITE_NAME'] = 'My Website';
$lang['SLOGAN'] = 'My slogan here';
$lang['HEADING'] = 'Welcome to the genealogy site of the Dohmen family';

// Menu
$lang['MENU_HOME'] = 'Home';
$lang['MENU_CONTACT'] = 'Contact';
$lang['MENU_GUESTBOOK'] = 'Guestbook';
$lang['MENU_landen'] = 'Countries';
$lang['MENU_LINKS'] = 'Links';
$lang['MENU_LOGIN'] = 'Login';
$lang['MENU_ACCOUNT'] = 'Account';
$lang['MENU_LOGOUT'] = 'Logout';
$lang['MENU_INGELOGD'] = 'Logged in';
$lang['MENU_UITGELOGD'] = 'Logged out';
// Menu loggedin

$lang['LOGGEDIN-MENU_HOME'] = 'Home';
$lang['LOGGEDIN-MENU_CONTACT'] = 'Contact';
$lang['LOGGEDIN-MENU_GUESTBOOK'] = 'Guestbook';
$lang['LOGGEDIN-MENU_landen'] = 'Countries';
$lang['LOGGEDIN-MENU_LINKS'] = 'Links';
$lang['LOGGEDIN-MENU_LOGIN'] = 'Account';
$lang['LOGGEDIN-MENU_LOGOUT'] = 'Logout';

// Menu loggedin-dropdown-account

$lang['LOGGEDIN-DROPDOWN-MY-ACCOUNT'] = 'My Account';
$lang['LOGGEDIN-DROPDOWN-EDIT-ACCOUNT'] = 'Edit my Account';
$lang['LOGGEDIN-MENU_ADMIN_CENTER'] = 'Admin Center';

//linker kolom
$lang['KOLOMLINKS'] = 'Living persons.';

//rechter kolom
$lang['KOLOMRECHTS'] = 'Deceased persons.';

//header
$lang['CONTAINER_TITLE_UITLEG'] = 'Welcome to the genealogy site of the Fam. Dohmen.';

//als geen data in stamboom
$lang['ALS_GEEN_DATA_IN_STAMBOOM'] = 'There are no people in your family tree.<br>Login to add yourself first.';

//welkom admin geen keuze gemaakt
$lang['WELKOM_ADMIN_GEENKEUZE'] = 'You made no choice !<br />
You will be in about 6 seconds<br />
led back.<brr>
If not click Back.';
$lang['WELKOM_ADMIN_TERUG'] = 'Back';


$lang['VUL_JEZELF_IN'] = 'Give of yourself all the information below.';

// partner toevoegen
$lang['VUL_PARTNER_IN'] = 'Fill in all the data of the partner.';

// scrol tabel links en rechts engels
$lang['SCROL_TABEL_LINKS_ACHTERNAAM'] = 'Backname';
$lang['SCROL_TABEL_LINKS_VOORNAAM'] = 'Birth letters';
$lang['SCROL_TABEL_LINKS_ROEPNAAM'] = 'Call name';
$lang['SCROL_TABEL_LINKS_BIRTHDATE'] = 'birth date';

// POPUPDIV
$lang['POPUPDIV_ACHTERNAAM'] = 'surname ';
$lang['POPUPDIV_VOORNAAM'] = 'Christian name';
$lang['POPUPDIV_ROEPNAAM'] = 'call name';
$lang['POPUPDIV_GEBOORTE_DATUM'] = 'Date Of Birth';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';
$lang['POPUPDIV_DATUM_GEDOOPT'] = 'Date baptized';


// Naam van weekdagen in engels
$lang['POPUPDIV_ZONDAG'] = 'Sunday ';
$lang['POPUPDIV_MAANDAG'] = 'Monday';
$lang['POPUPDIV_DINSDAG'] = 'Tuesday ';
$lang['POPUPDIV_WOENSDAG'] = 'Wednesday';
$lang['POPUPDIV_DONDERDAG'] = 'Thursday ';
$lang['POPUPDIV_VRIJDAG'] = 'Friday ';
$lang['POPUPDIV_ZATERDAG'] = 'Saturday ';

// Naam van maanden in engels
$lang['POPUPDIV_JANUARI'] = 'January ';
$lang['POPUPDIV_FEBRUARI'] = 'February ';
$lang['POPUPDIV_MAART'] = 'March';
$lang['POPUPDIV_APRIL'] = 'April';
$lang['POPUPDIV_MEI'] = 'May ';
$lang['POPUPDIV_JUNI'] = 'June';
$lang['POPUPDIV_JULI'] = 'July';
$lang['POPUPDIV_AUGUSTUS'] = 'August ';
$lang['POPUPDIV_SEPTEMBER'] = 'September ';
$lang['POPUPDIV_OKTOBER'] = 'October ';
$lang['POPUPDIV_NOVEMBER'] = 'November';
$lang['POPUPDIV_DECEMBER'] = 'December';
// verboden toegang
$lang['FORBIDDEN_PAGE'] = '<div><a href="http://www.dohmen-stamboom.nl/test/index.php"  >If you don´t want to wait click here.</a></div><br/><div><img src="image_acess_denied/acces_denied_en.gif"  alt=""></div>;'; 

$lang['FOTO_TAAL'] = '<center><img src="index_text/stamboom_en.gif" alt="" style="border:none;" ></center>';

?>

lang.nl.php

<?php
/* 
-----------------
Language: German
-----------------
*/

$lang = array();

// allert boxen

$lang['ALERTBOX_A'] = 'Hiervoor moet u eerst aangemeld zijn.';




$lang['PAGE_TITLE'] = 'Stamboom Dohmen';
$lang['HEADER_TITLE'] = 'Welkom ';
$lang['HEADER_TITLE_A'] = 'Hallo ';
$lang['HEADER_GAST'] = 'Gast';
$lang['HEADER_TITLE_B'] = 'Welkom bij de stamboom pagina van de';
$lang['HEADER_TITLE_C'] = 'Familie Dohmen';
$lang['HEADER_TITLE_D'] = 'Welkom bij de genealogie pagina van de';

$lang['SITE_NAME'] = 'My Website';
$lang['SLOGAN'] = 'My slogan here';
$lang['HEADING'] = 'Welkom bij de genealogie pagina van de Familie Dohmen';


// Menu
$lang['MENU_HOME'] = 'Home';
$lang['MENU_CONTACT'] = 'Contact';
$lang['MENU_GUESTBOOK'] = 'Gastenboek';
$lang['MENU_landen'] = 'Landen';
$lang['MENU_LINKS'] = 'Links';
$lang['MENU_LOGIN'] = 'Inloggen';
$lang['MENU_LOGOUT'] = 'Uitloggen';
$lang['MENU_INGELOGD'] = 'Ingelogd';
$lang['MENU_UITGELOGD'] = 'Uitgelogd';

// Menu loggedin
$lang['LOGGEDIN-MENU_HOME'] = 'Home';
$lang['LOGGEDIN-MENU_CONTACT'] = 'Kontact';
$lang['LOGGEDIN-MENU_GUESTBOOK'] = 'Gastenboek';
$lang['LOGGEDIN-MENU_landen'] = 'Landen';
$lang['LOGGEDIN-MENU_LINKS'] = 'Links';
$lang['LOGGEDIN-MENU_LOGIN'] = 'Account';
$lang['LOGGEDIN-MENU_LOGOUT'] = 'Afmelden';

// Menu loggedin-dropdown-account

$lang['LOGGEDIN-DROPDOWN-MY-ACCOUNT'] = 'Mijn Account';
$lang['LOGGEDIN-DROPDOWN-EDIT-ACCOUNT'] = 'Mijn Account bewerken';
$lang['LOGGEDIN-MENU_ADMIN_CENTER'] = 'Admin Center';
$lang['LOGGEDIN-MENU_landen'] = 'Landen';
$lang['LOGGEDIN-MENU_LINKS'] = 'Links';
$lang['LOGGEDIN-MENU_LOGIN'] = 'Account';
$lang['LOGGEDIN-MENU_LOGOUT'] = 'Afmelden';


//linker kolom
$lang['KOLOMLINKS'] = 'Levende personen.';

//rechter kolom
$lang['KOLOMRECHTS'] = 'Overleden personen';

//cookie
$lang['COOKIE'] = 'Om deze site correct te laten werken gebruikt deze site cookies.
Als u niet akkoord gaat kunt u geen gebruik maken van deze site.
U wordt dan doorgelinkt naar de zoekpagina van Google.';

// container
$lang['CONTAINER_TITLE_UITLEG'] = 'Welkom bij de stamboom pagina van de Fam. Dohmen.';


//als geen data in stamboom
$lang['ALS_GEEN_DATA_IN_STAMBOOM'] = 'Er staan nog geen personen in uw stamboom.<br>Meld u eerst aan om uzelf toe te voegen.';

//welkom admin geen keuze gemaakt
$lang['WELKOM_ADMIN_GEENKEUZE'] = 'U hebt geen keuze gemaakt !<br />
U wordt in ong. 6 seconden automatisch<br />
terug geleid.<br />
Zo niet klik op Terug.';
$lang['WELKOM_ADMIN_TERUG'] = 'Terug';

// mijzelf toevoegen
$lang['VUL_JEZELF_IN'] = 'Vul hieronder alle gegevens van jezelf in.';
// partner toevoegen
$lang['VUL_PARTNER_IN'] = 'Vul hieronder alle gegevens van de partner in.';

// scrol tabel links en rechts nederlands
$lang['SCROL_TABEL_LINKS_ACHTERNAAM'] = 'Achternaam';
$lang['SCROL_TABEL_LINKS_VOORNAAM'] = 'Geboorte letters';
$lang['SCROL_TABEL_LINKS_ROEPNAAM'] = 'Roeppnaam';
$lang['SCROL_TABEL_LINKS_BIRTHDATE'] = 'Geboorte Datum';

// POPUPDIV
$lang['POPUPDIV_ACHTERNAAM'] = 'Achternaam';
$lang['POPUPDIV_VOORNAAM'] = 'Geboorte naam';
$lang['POPUPDIV_ROEPNAAM'] = 'Roeppnaam';
$lang['POPUPDIV_GEBOORTE_DATUM'] = 'Geboorte Datum';
$lang['POPUPDIV_GEBOORTE_LAND'] = 'Geboorte Land';
$lang['POPUPDIV_GEBOORTE_PROVINCIE'] = 'Geboorte Provincie';
$lang['POPUPDIV_GEBOORTE_GEMEENTE'] = 'Geboorte Gemeente';
$lang['POPUPDIV_GEBOORTE_PLAATS'] = 'Geboorte Plaats';
$lang['POPUPDIV_BEROEP'] = 'Beroep';
$lang['POPUPDIV_GELOOF'] = 'Geloof';

// Naam van weekdagen
$lang['POPUPDIV_ZONDAG'] = 'zondag';
$lang['POPUPDIV_MAANDAG'] = 'maandag';
$lang['POPUPDIV_DINSDAG'] = 'dinsdag';
$lang['POPUPDIV_WOENSDAG'] = 'woensdag';
$lang['POPUPDIV_DONDERDAG'] = 'donderdag';
$lang['POPUPDIV_VRIJDAG'] = 'vrijdag';
$lang['POPUPDIV_ZATERDAG'] = 'zaterdag';

// Naam van maanden
$lang['POPUPDIV_JANUARI'] = 'januari';
$lang['POPUPDIV_FEBRUARI'] = 'februari';
$lang['POPUPDIV_MAART'] = 'maart';
$lang['POPUPDIV_APRIL'] = 'april';
$lang['POPUPDIV_MEI'] = 'mei';
$lang['POPUPDIV_JUNI'] = 'juni';
$lang['POPUPDIV_JULI'] = 'juli';
$lang['POPUPDIV_AUGUSTUS'] = 'augustus';
$lang['POPUPDIV_SEPTEMBER'] = 'september';
$lang['POPUPDIV_OKTOBER'] = 'oktober';
$lang['POPUPDIV_NOVEMBER'] = 'november';
$lang['POPUPDIV_DECEMBER'] = 'december';

// verboden toegang
$lang['FORBIDDEN_PAGE'] = '<div><a href="http://www.dohmen-stamboom.nl/test/index.php"  >Klik hier als u niet wilt wachten.</a></div><br/><div><img src="image_acess_denied/acces_denied.gif"  alt=""></div>;'; 

$lang['FOTO_TAAL'] = '<center><img src="index_text/stamboom_nl.gif" alt="" style="border:none;" ></center>';


?>

I cant get it working

I know i do something wrong with

if($countryname == "Germany")
  {
  ?>
  <src="index.php?lang=nl">
  <?php
  }
  if($countryname == "Netherlands" || $countryname == "Belgium")
  {
  ?>
  <src="index.php?lang=de">
  <?php
  }
  if($countryname == "United Kingdom" || $countryname == "Ireland" || $countryname == "United States" || $countryname == "Australia" || $countryname == "New Zealand")
  {
  ?>
  <src="index.php?lang=en">
  <?php
  }

tHE FOLLOWING IS WORKING GREAT

include_once('ip2c/ip2country.php');
      $ip2c=new ip2country();
      $ip2c->mysql_host='localhost';
      $ip2c->db_user='tadada';
      $ip2c->db_pass='tatatata';
      $ip2c->db_name='i_dont_tell';
      $ip2c->table_name='ip2c';
      $countryname = $ip2c->get_country_name();

But can someone help me to make it ALL working in the right language

if you want a example goto http://www.dohmen-stamboom.nl/test/index.php

thanks in advice John

There is no error only the page will not come in the right language as my contact people in other county's said. that's the problem.

Check your IF statements, this <src="index.php?lang=nl"> is not a tag, so you have to change them all, also there is no default condition.

I have the solution I leave the following away from the index.php

include_once('ip2c/ip2country.php');
      $ip2c=new ip2country();
      $ip2c->mysql_host='localhost';
      $ip2c->db_user='tadada';
      $ip2c->db_pass='tatatata';
      $ip2c->db_name='i_dont_tell';
      $ip2c->table_name='ip2c';
      $countryname = $ip2c->get_country_name();
      if($countryname == "Germany")
      {
      ?>
      <src="index.php?lang=nl">
      <?php
      }
      if($countryname == "Netherlands" || $countryname == "Belgium")
      { 
      ?>
      <src="index.php?lang=de">
      <?php
      }
      if($countryname == "United Kingdom" || $countryname == "Ireland" || $countryname == "United States" || $countryname == "Australia" || $countryname == "New Zealand")
      {
      ?>
      <src="index.php?lang=en">
      <?php
      }

and i change the common.php into

<?php
session_start();
header('Cache-control: private'); // IE 6 FIX
header('Content-Type: text/html; charset=UTF-8');

include_once('ip2c/ip2country.php');
$ip2c=new ip2country();
$ip2c->mysql_host='localhost';
$ip2c->db_user='john';
$ip2c->db_pass='john123!';
$ip2c->db_name='stamboom';
$ip2c->table_name='ip2c';
$countryname = $ip2c->get_country_name();

if($countryname == "Germany")
{
$_SESSION['lang'] = "de";
}


if($countryname == "Netherlands" || $countryname == "Belgium")
{
$_SESSION['lang'] = "de";

}

if($countryname == "United Kingdom" || $countryname == "Ireland" || $countryname == "United States" || $countryname == "Australia" || $countryname == "New Zealand")
{
$_SESSION['lang'] = "en";
}

$lang = $_SESSION['lang'];

setcookie("lang",$lang, time()+3600*24*365);


if(isSet($_SESSION['lang']))
{
$lang = $_SESSION['lang'];
}
else if(isSet($_COOKIE['lang']))
{
$lang = $_COOKIE['lang'];
}
else
{
$lang = 'en';
}

switch ($lang) {    

    case 'nl':
  $lang_file = 'lang.nl.php';
  break;

 case 'de':
  $lang_file = 'lang.de.php';
  break;

  case 'en':
  $lang_file = 'lang.en.php';
  break;

case 'australie':
  $lang_file = 'lang.en.php';
  break;

case 'usa':
  $lang_file = 'lang.en.php';
  break;

      default:
  $lang_file = 'lang.nl.php';

  }
include_once 'languages/'.$lang_file;
?>

And now i have it working
Thanks for the little help.