German will not appear when clicked and will show english. If English is clicked, German will appear. I've investigated hide, show, visibile parts. I even wrote a JavaScript script, but it did not work. At the moment, German and English appear to be on the side of the site, but I want only German and German will be clicked and the German page will be English.
<?php
session_start();
if($_GET['lang']) {
$_SESSION['lang'] = $_GET['lang'];
header("Location:index.php");
}
if ($_SESSION['lang'] == "en") {
$lang= "en";
}
elseif ($_SESSION['lang'] == "gr") {
$lang= "gr";
}
else {
$lang= substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
}
include 'languages/'.$lang.'.php';
?>
<a href="?lang=gr" style="text-decoration:none;" title="German">
<strong>German</strong> </a>
<a href="?lang=en" style="text-decoration:none;" title="English"><strong>English</strong></a>