Hi,
I was working on win2k with apache-php and everything has gone well.
Now I am using XP-Pro and I made everything as before but there is a problem:
I used this line to load a page sending a parameter ($What=First)with different languages.
echo "<a href=\"home.php?lng=eng&What=First\">English</a>";
echo "<a href=\"home.php?lng=ita&What=First\">Italian</a>";
with at the beginning of the home.php
switch ($lng)
{
default:
case "ita":
include("./languages/ita.php"
;
break;
case "eng":
include("./languages/eng.php"
;
break;
}
The problem is this: I have always the Italian version I think because or php doesn't send correctly the variable $lng either apache doesn't manage this variable.
Using exactly the same code under win2k everything is ok.
Is there anybody who can help me?
Thank's a lot
P.S: in the link I use & amp ; (I write with space) instead of & as shown in this message. I don't know if it is important
I was working on win2k with apache-php and everything has gone well.
Now I am using XP-Pro and I made everything as before but there is a problem:
I used this line to load a page sending a parameter ($What=First)with different languages.
echo "<a href=\"home.php?lng=eng&What=First\">English</a>";
echo "<a href=\"home.php?lng=ita&What=First\">Italian</a>";
with at the beginning of the home.php
switch ($lng)
{
default:
case "ita":
include("./languages/ita.php"
break;
case "eng":
include("./languages/eng.php"
break;
}
The problem is this: I have always the Italian version I think because or php doesn't send correctly the variable $lng either apache doesn't manage this variable.
Using exactly the same code under win2k everything is ok.
Is there anybody who can help me?
Thank's a lot
P.S: in the link I use & amp ; (I write with space) instead of & as shown in this message. I don't know if it is important