Hi, I've a splash site that displays 4 flags (UK, Norway, Spain and Germany)
The meaning is,
1) The user clicks on i.e. the Norwegian flag, then he will access /nor/index.php on the server. That works fine, the /nor/index.php page sets a cookie like this:
<?
setcookie("norsk", "flagg", time()+28800);
?> it seems to work, because in the Temp. Internet Files on my IE I can see a cookie called nor/.
2) Next time the user visit the site, the splash page will look after the cookie(s) like this:
<?php
if($HTTP_COOKIE_VARS["norsk"]) {
Header("Location: http://www.silica.nu/rober2/jardin/nor/index.php");
}
if($HTTP_COOKIE_VARS["engelsk"]) {
Header("Location: http://www.silica.nu/rober2/jardin/eng/index.php");
}
if($HTTP_COOKIE_VARS["spansk"]) {
Header("Location: http://www.silica.nu/rober2/jardin/esp/index.php");
}
if($HTTP_COOKIE_VARS["tysk"]) {
Header("Location: http://www.silica.nu/rober2/jardin/ger/index.php");
}
?>
[Here comes the normal HTML of the splash page]
When I enter the splash page, my IE 'thinks' for a couple of seconds and then it just displays the normal HTML source as shown above.
What can be wrong?
If you want to test the site go to http://www.rober2.net/jardin and choose the Norwegian flag. (the other pages are not ready yet)
Thanks in advanced....
You guys rocks....