If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: R. Meier
Forum Index » Profile for R. Meier » Messages posted by R. Meier
Author Message
Hi all

I'm completely a newbie in PHP. Because of an article here I tried to create the language.php site with the following code:

<?php
$referer = getenv("HTTP_REFERER");
if (empty($referer)) {
$target = "index.php";
}
if(!isset($lang)) {
$lang = "english";
}
SetCookie("lang", "$lang", time()+86400*365);
header("Location: $target");
exit();
?>


and a site called language.htm with the following code:

<body>
<a href="language.php?lang=english">English</a>
<a href="language.php?lang=german">German</a>
</body>

it never worked, the Guestbook is always shown in the default language I set by administration panel.

Is somebody there who can help me? Thank you very much.

BTW: I use the Advanced Guestbook v.2.2 (If I try the new version, I can not access anymore to the mySQL Database . I don't know why but if you have a solution for the v.2.2 I would be very happy)

Thank you very much
Ralf
 
Forum Index » Profile for R. Meier » Messages posted by R. Meier
Go to:   
Based on the open source JForum