to enter the site you can either click a link english or portuguese
this sends a variable to the php:
<a href="file.php?lang=en">english</a>
<a href="file.php?lang=pt">portugês</a>
in file.php I have the swf file which will load the variable lang and this code
$lang = $_GET['lang'];
$loaded = true;
if($lang=='en'){
$language = 'en';
}else{
$language = 'pt';
}
echo("&language=$language&loaded=$loaded&");
the problem is that when I use echo(), the code inside it is displayed which obsiously should't happen!
Is there any other way or logic to do this?
onother question:
when I use just this code, the variable lang loads into flash but it is empty, that's why I use the variable language also.
$lang = $_GET['lang'];
$loaded = true;
echo("&lang=$lang&loaded=$loaded&");
why?