0

hi friends i have facing a problem

<? define('DIR_WS_INCLUDES', 'includes/');
   define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'lang/');
define('DEFAULT_LANGUAGE',''english); ?>

these are code use in configure.php it is use in index.php with following code

<? include_once(DIR_WS_LANGUAGES.DEFAULT_LANGUAGE.'.php') ;?>

now i want to use this with select language i select language

<? if(isset($_GET['flag'])){
          if ($_GET['flag']==po){
		 echo  $_SESSION['language']=polish;} 
		  else{
		  echo $_SESSION['language']=english;}} ?>

now i get value language in $_SESSION but i want to get value of this session in

<? include_once(DIR_WS_LANGUAGES.DEFAULT_LANGUAGE.'.php') ;?>

instead of DEFAULT_LANGUAGE HOWS DONT KNOW

PLEASE help me

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by pritaeas
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.