ok well here what im trying to do: I have a 2 frame page...1 frame being a top menu bar and the other the website body. on every page i register a session variable called $instructions with a text string attached of somekind. now i want to print this string in the menu frame. but the problem is that the text on the menu frame
(as the session variable $instructions changes) wont change unless i reload the whole browser window. then it will change and wont change again untili reload the window again. i was hoping someone could help me write a code that will change this text on the menu bar instantly when the session variable changes sending messages to the user in the top menu bar. or a code which will reload the frame window(if thats posible) upon a change to this session variable $instructions. i was tring to use the header function here to reload the page...with no luck....
heres he code to my menu bar , and please dont laugh im just starting out.
<?
session_start();
$temp = $instructions; / i was hoping this would create a copy of $instructions and when the original changed it wouldnt match/
if ($temp != $instructions)
{
header("location:menu.php"); /also tried $PHP_SELF to redirect the frame to the same page trying to reload the frame/
exit;
}
else
{
$now = $instructions; /the string in $now prints out below but wont change unless i reload the browser/
}
?>
<html>
<head>
<base target="main"
</head>
<body bgcolor="black" text="white" link="white" alink="yellow" vlink="white">
<table border="0" bordercolor="white" width="100%" cellpadding="0" cellspacing="0"style="border-collapse: collapse">
<td height="10%">
<table border="0" bordercolor=yellow cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<tr align="center" valign="middle">
<td>
<h3><a href="front.php" style="text-decoration:none"> Home </a></h3>
<td>
<h3><a href="maccount.php" style="text-decoration:none"> Make Account </a></h3>
<td>
<h3>
<a href="search.php" style="text-decoration:none"> Seach Our Database </h3></a>
</table>
</td>
<td align="center">
<?php
print "$now";
?></td>
</table>
</body>
</html>