Hi everyone,
I´m, trying to internationalizate my web.
I want to know how to make an image trigger an action, so that the user can choose the idiom by clicking on the image.
I was trying like this.
<img src="../images/banderas/espaniol.ico" id="es" value="es" action="idioma2.php" method="post" />
<img src="../images/banderas/euskera.ico" id="eu" value="eu" action="idioma2.php" method="post" />
<img src="../images/banderas/ingles.ico" id="en" value="en" action="idioma2.php" method="post" />
and then something like this in idioma2.php
if($_SESSION["eu"]!="")
$lang=$_SESSION["eu"];
elseif ($_SESSION["es"]!="")
$lang=$_SESSION["es"];
elseif ($_SESSION["en"]!="")
$lang=$_SESSION["en"];
It´s probably crazy, but i´m newby in php.
Thanks!


