session_start();
if(isset($_GET["lang"])){
$lang=strip_tags($_GET["lang"]);
if($lang=="tr" || $lang=="en"){
$_SESSION["lang"]=$lang;
}
else{
$_SESSION["lang"]="en";
}
}else{
$_SESSION["lang"]="en";
}
?>
Document
TürkçeIngilizce