i'm posting my solution for this dilemma should anybody stumble upon ye thread...
in a nutshell...i don't need to use a header...i just needed to pass things onto javascript...but also, since i'm using frames, and i want both frames to reload dynamically...i need to make those dynamic as well...
no laughing at my code...i'm trying hard...😃
a snippet from the frames...if/else since at one point in things no information is passed to them...
<FRAME name="mainleft" src="<? if ($m == NULL) { echo "menus.php?m=2&status=1"; }
else { ?>menus.php?m=<? echo $m ?>&status=<? echo $status ?><? } ; ?>">
<FRAME name="mainright" src="<? if ($q == NULL) { echo "blank.php"; }
else { ?>cont.php?q=<? echo $q ?>&id=<? echo $id ?><? } ; ?>">
and inside the page...nothing special is done to get this to work...just took out the header:location and dropped in some javascript...
if ($saveprev) {
$result = mysql_query ("UPDATE table SET id='$id',status='$status' WHERE id='$id'")
or die ("Not working you fool!");
echo ("
<SCRIPT language=\"JavaScript\">
top.content_area.location.href='menu_p.php?m=2&status=$status&id=$id&q=preview';
</SCRIPT>");
}
voila...vaska