Hi,
I want make multilanguage site with PHP based on SESSIONS like this site untiny.com
I try with this code but not working :
<?
session_start();
$lang = $_GET['lang'];
if (!isset($lang)) {
include ('ar/language.php');
$lang = "ar";
}
else if ($lang == "en" ) {include ('en/language.php'); $SESSION["lang"] = "en"; header("Location: http://it2.in/");}
else if ($lang == "ar" ) {include ('ar/language.php'); $SESSION["lang"] = "ar"; header("Location: http://it2.in/");}
else if ($lang != "ar" || "en") {header("Location: http://it2.in/"); header("Location: http://it2.in/");}
?>
Anyone can help me. Thanks
Thank you all. But @ now nothing working, Are there other ideas.