ive written this, for switching between 2 languages with php, but im a newb and its not working, stays on the 'if' language.
########
code so far: (within the content page)
<?
$lang = $_REQUEST['lang'];
if($lang = 'hindi' ) {
echo "This is the fragment of the content in hindi language";
} else {
echo "This is a text in english language that will be shown when entering website";
}
?>
#########
and the link that gets the page (from any page)
<a class="language" href="index.php?lang=hindi">Hindi</a>
<span id="language"> | </span>
<a class="language" href="index.php?lang=english">English</a>
#####
lastly would like to have option for third language if i can support sanscrit
would like to put an 'include' instead of the sample text just hope i dont break it
########
code so far: (within the content page)
<?
$lang = $_REQUEST['lang'];
if($lang = 'hindi' ) {
echo "This is the fragment of the content in hindi language";
} else {
echo "This is a text in english language that will be shown when entering website";
}
?>
#########
and the link that gets the page (from any page)
<a class="language" href="index.php?lang=hindi">Hindi</a>
<span id="language"> | </span>
<a class="language" href="index.php?lang=english">English</a>
#####
lastly would like to have option for third language if i can support sanscrit
would like to put an 'include' instead of the sample text just hope i dont break it