|
-
Jul 26th, 2005, 02:54 PM
#1
Thread Starter
Member
[RESOLVED] noob nquestion: Variables scope
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.-
... and the rivers shall open for the righteous, and the rivers shall open for the righteous, and rivers shall open for the righteous, someday ....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|