$idioma=strtolower($idioma);
if ($idioma=="esp" || $idioma=="eng" || $idioma=="ger"){
$_SESSION['session_idioma'] = $idioma;
}
if (!$_SESSION['session_idioma']){
$_SESSION['session_idioma'] = "esp";
}
// define (IDIOMA,$_SESSION['session_idioma']);
$IDIOMA = $_SESSION['session_idioma'];
include "cntTxt_$IDIOMA.php3";
define ('CNT_TXT_WARNING_EMAILSENTOK',"email sent correctly");
define ('CNT_TXT_WARNING_EMAILSENTERROR',"there was an error sending your email");
@Barand,
I define these constants in a txt file called cntTXT_eng for English language like so:
Then I have created a php file called constants like this:
I then include the constans php file at the top of the page. It works site wide except for the contact form.