Hi,
I'm having a classic 'doesn't work in IE but works in FF' problem.
I have a site http://learn-croatian.com/apdejt and I wanted to make it easier for me to update metas in all pages with help from php. I'd change the php variables in a central file which is included in every page. Here's what I did:
<?php include ("meta.txt"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title><?php echo "$naslov"; ?>Homepage</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="<?php echo "$opis"; ?>" />
<meta name="keywords" content="<?php echo "$kljucne"; ?>"/>
<meta name="author" content="<?php echo "$autor"; ?>" />
<link rel="stylesheet" type="text/css" href="style.css" />
<meta name="copyright" content="Learn-Croatian.com" />
<meta http-equiv="content-language" content="en, hr" />
<!--[if IE]>
<style type="text/css">
* html .ex{padding-bottom:32767px;margin-bottom:-32767px;}
</style>
<![endif]-->
</head>
Here is the meta.txt file:
<?php
$opis="Learn-Croatian.com is the site for grasping the basics of the Croatian language for free!";
$kljucne="horvatsko, chorvatsko, book, croatian, lessons, lesson, adjectives, verbs, nouns, pronouns, croatia, language, hrvatski, hrvatska, croatian, jezik, learn, free, phrasebook, phrases, recordings, translations, tourist, tourism, holidays, vacations, trips, istria, istra, slavonija, slavonia, dalmatia, dalmacija, zagreb, no, charge, online, trips, vacations, holidays, kroatiska";
$naslov="Learn Croatian for free | ";
$autor="Tomislav - contact@learn-croatian.com";
?>
Well, it doesn't work in IE 6. Please hit the link I gave above with FF and IE both. You'll see what I'm talking about. However, if I don't use the include command and just insert the code from the meta.txt file everything works fine (except the fact that the picture in the header is pushed down too much which can be seen with IE even now). But if I do that, I'll have to modify each page manually when I want to change the metas one day.
Please help!