Jump to content

Recommended Posts

Hi. I include my language file with PHP code.

In firefox, when I include the page this  signs appears top of page.

(http://www.cordoproduction.com) if you want to see.

 

Here is my source of index.php:

<?PHP 
$lang = $_GET['lang'];
$page = $_GET['page'];
if($lang == "") $lang = "nb";
include("./lang.$lang.php");
?>
<html>
<head>
<title><?PHP echo PAGE_TITLE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #000066;
margin-top: 5cm;
}
body,td,th {
color: #666666;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
-->
</style></head>
<body leftmargin="0" marginwidth="0">
<table width="562" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr valign="middle">
    <td width="562"><img src="images/enter.jpg" width="562" height="180" border="0" usemap="#lang"></td>
  </tr>
</table>

<map name="lang"><area shape="rect" coords="27,123,144,160" href="index2.php?page=news&lang=nb" target="_self">
<area shape="rect" coords="177,124,330,159" href="index2.php?page=news&lang=en" target="_self">
<area shape="rect" coords="360,125,533,165" href="index2.php?page=news&lang=fr" target="_self">
</map></body>
</html>

 

And here is my language file code:

<?PHP

# misc
define("PAGE_TITLE", "Offisiell side for Glenn Hovet");
define("COPYRIGHT", "&copy cordoproduction.com - Alle rettigheter er reservert - Design av <a href=\"mailto:glenn_875@hotmail.com\">Glenn Hovet</a>");
define("ERROR", "Feil");
define("ERROR_404_MSG", "Siden finnes ikke.");

# meny
define("HOVED", "nyheter");
define("BIO", "biografi");
define("KALENDER", "kalender");
define("BILDER", "bilder");
define("MM", "multimedia");
define("LINKER", "linker");
define("KONTAKT", "kontakt");
define("GJESTEBOK", "gb");

# biografi
define("NAME", "Navn:");
define("DOB", "Fødseldato:");
define("DOB_2", "27 februar 1994, Kristiansand");
define("NICK", "Kallenavn:");
define("NATIONALITY", "Nasjonalitet:");
define("NATIONALITY_2", "Norsk");
define("HOBBIES", "Hobbyer:");
define("FAMILY", "Familie:");
define("FAMILY_2", "En far, en mor og to brødre");
define("HEIGHT", "Høyde:");
define("WEIGHT", "Vekt:");
define("FAV_MUSIC", "Favoritt musikk:");
define("FAV_MOVIE", "Favoritt film:");
define("FAV_FOOD", "Favoritt mat:");
define("FAV_DRINK", "Favoritt drikke:");
define("FAV_DRINK_2", "Eplejus");
define("MOTOCROSS_BIO", "Motocross biografi");
define("FIRST_MOTO", "Første løp:");
define("FIRST_MOTO_2", "Hekni, 2003, 9 år");
define("BEST_RESULT", "Beste resultat:");
define("FAV_CIRCUIT", "Favoritt bane:");
define("FAV_CIRCUIT_2", "Ingen spesiell");

# multimedia
define("WALLPAPERS", "Bakrunnsbilder");
define("PICK_A_SIZE", "Vennligst velg en størrelse!");
define("COMING_SOON", "kommer senere");
define("FINSLAND_DRIVING", "Jeg kjører i Finsland (youtube)");

# linker
define("RIDERS_AND_TEAMS", "Førere og team");
define("SHOPS", "Butikker");
define("MOTOCROSS_CLUBS", "Motocross klubber");
define("OTHER", "Annet");

# contact
define("EMAIL", "E-post:");
define("SUBJECT", "Emne:");
define("MESSAGE", "Melding:");
define("CONTACT_MSG", "Meldingene blir sent til glenn[at]cordoproduction[dot]com");
define("MAIL_SENT", "Meldingen er sent.");

?>

 

In IE it doesn't appear, just in Firefox.

Please help.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.