At 13:29 17-3-03, you wrote:
Hi,

I am designing a system which will have a different menu option for
different users i.e. admin/standard etc.

If I am using frames how could I change the page a user sees in the top
frame for each different type of user? I know how to do this with standard
pages, its just the frames that are pickling my brain!
either redesign your site so the top frame is included by PHP in stead of by the frame function, or in the frame you refresh add a line of javascript to refresh the topframe, e.g.

$usertopframepage='page13.html';
$mainpage.= "<script><!--\n window.topframename.location.href='http://www.mydomain.org/".$usertopframepage.''; \n <//--></script>";



it is important to add the http://www.mydomain.org part because Netscape and Mozilla javascript need that.



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to