Hi,
OK Ive read the manual, looked at other peoples problems with them, and Im still stoofed!
I have a threes scripts
- user selects the language
- $lang variable gets set into a cookie
- main page with selected header for that language:
The main is set to display the cookie if it exists, but i just keep getting "cookie not set.."
Any help on this code?
1.------------index.php3--------------
$cookie = "setcookie.php3";
echo "<A HREF=\"$cookie?&lang=En\">English</A>";
1.------------setcookie.php3--------------
<?
$header = "languages/$lang/header.php3";
$footer = "languages/$lang/footer.php3";
setcookie ("langheader", $header, "/", ".domain.com", 0);
setcookie ("langfooter", $footer, "/", ".domain.com", 0);
header ("Location: main.php3");
?>
1.------------main.php3--------------
<?php
if(isset( $langheader )){
print " cookie 'langheader': $langheader\n";
} else {
print " no cookie set ...\n";
}
?>