I'm trying to develop a web with 2 languages (english-spanish), first, i should learn english (i know ) but well, i want to know which is the scope of variables that get passed by the browser. This is my home.php:

HTML Code:
<?PHP

require_once('include_dir/load_smarty.php');

if($_GET["lang"]=="es")
       {
            $smarty->assign("welcome","Bienvenido al sitio web de DBB");
            $smarty->assign("menu","menu_es.tpl");
         }
elseif($_GET["lang"] =="en")
        {
            $smarty->assign("welcome","Welcome to the DBB Website");
            $smarty->assign("menu","menu_en.tpl");
         }

$smarty->display("home.tpl");

?>
the superglobal $_GET["lang"] is available to subsecuents php scripts? Or just to that particular one. If it isn't, who do i keep that value to the rest of the web, without asking for the language again?


Thanks in advance, Matias.-