(Sorry for my "Spanglish")
I am modifying the page of the company of my papa and in a section it has several agents of different paises, the design is the same one for all and are 16 altogether, which I want to do is a single page that receives the data of the agent by means of a Link and according to the language (it is in English and Spanish) it shows what corresponds.
I have a page with all links of this type:
<? echo "<a href=\"agentes.php?var=NY\" target=\"iframeagen\">"._NY.""; ?></a>
<? echo "<a href=\"agentes.php?var=AR\" target=\"iframeagen\">"._AR.""; ?></a>
etc.
And in the page agentes.php I have this:
$valor = $_GET['var'];
The value of NY or Ar, etc, they go well, but I want it is that it depends if is NY or AR (New York or Argentina), takes from the file on language the data, that is:
in agentes.php so that it takes from the language file I have this:
<? echo ""._AGTIT."$valor"; ?>
but what shows it is the data of the language file that corresponds to "_ AGTIT" (that does not exist) and the value (NY, AR, etc.); I want to thus put in the language file the data:
define("_AGTITNY","Fulanito");
define("_AGTITAR","Menganito");
So that it depends what passage by means of the Link (<a href=\"agentes.php?var=NY\") show what corresponds to NY to AR, etc.
Happening more in clean...
in the language file I have:
AGXX (where XX is NY, AR, AU, etc.) and in the page that is created (agentes.php) i have AGXX where XX it is what one goes by means of the Link and I want is that depends what it goes through the Link, shows the data of the language file.