Ok, so on this page, the script looks like this:
<?php
inlcude_once("header.php");
$id = $_GET['id'];
if (empty($id)) {
message("Site Name....","Message....");
}
..... other code
include_once("footer.php");
?>
So if I go on that page and the url is like forum.php?id=1 then it views normally and the cookie turns up properly in the footer.
Now here is where my function message() comes in. All the code for that function looks like:
function message($title,$message,$t=0) {
global $bgcolor, $bordercolor;
echo "
<center>
<table border=\"0\" style=\"text-align: center\" bgcolor=\"$bordercolor\" cellpadding=\"5\" cellspacing=\"1\" width=\"75%\">
<tr bgcolor=\"$bgcolor\">
<td>
<b><u>" . $title . "</u></b>
</td>
</tr>
<tr bgcolor=\"$bgcolor\">
<td>
" . $message . "
</td>
</tr>
</table>
";
if ($t == 0) {
include("http://www.mugglepride.com/rpg/footer.php");
exit;
}
}
So now, if there is no ?id=1 or whatever, in the URL, then the message appears, but the thing is, when the message shows up, the cookie seems to be blank after the message appears?? I can not figure out why.