hello. im converting a site from being a framed site to also include a nonframed version. instead of maintaining 2 copies of each page, i have written a top.inc file to detect if the user wants frames or not and using a framed or nonframed top file accordingly. ex:
top.inc
<?php
if ($noframe == 1) {
include("noframe_top.inc");
} else {
include("frame_top.inc");
}
?>
this is fine and dandy as long as i include "?noframe=1" in every url string. the problem with that is that the user can now change the url and screw things up.
im wondering if there is a way to pass the variable $noframe from page to page without passing it in the url string at the top of the browser?