problem with if statement and language.

From: Date: Tue, 03 Oct 2000 09:55:31 +0000
Subject: problem with if statement and language.
Groups: php.general 
Request: Send a blank email to php-general+get-18397@lists.php.net to get a copy of this message
Hello all, I want to try a multilingual page and now I want to create it with $HTTP_ACCEPT_LANGUAGE variable. So I made this: f ($HTTP_ACCEPT_LANGUAGE = "de") { $lang="d"; $Language=$lang."_text"; setcookie("LUWA_LANGUAGE",$lang); require("order5.inc.php3"); } else { if ($HTTP_ACCEPT_LANGUAGE = "en") { $lang="e"; $Language=$lang."_text"; setcookie("LUWA_LANGUAGE",$lang); require("order5.inc.php3"); } I have in one file default language and I included it before. And this is not working. If I have english computer gives me german. Some help or suggestions? THX a lot -- Best regards, Daniel mailto:daniel@mail.viapvt.sk

« previous php.general (#18397) next »