NogDog wrote:1. The question is very vague.
2. It may be expecting too much of us to download, unzip, and view all 3 files and try to determine what the problem is and how to solve it, especially with no idea what we're looking for.
I am searching help for following
details for files are as follows
// content of content.php
<?php
if ($_SESSION['lang']=="np")
{
print "content based on language=np \n";
print "<a href='language.php?lang=np>change language</a> \n";
}
else
{
print "content based on language !=np \n";
print "<a href='language.php?lang=np>change language</a> \n";
}
?>
//content of index.php
<?php
global $lang;
if (!isset($_SESSION['lang'])) session_start();
include "content.php";
?>
//content of language.php
<?php
$lang = $GET['lang'];
$SESSION['lang'] = $lang;
header("Location:". $_SERVER['HTTP_REFERER']);
?>
I want to display the content as per language selected via $_GET method.
please help me in this regards