My frend is making a web site in php .... it will be page made with "include" function...for header, left and right menus, footer and content...
Content will be in 2 levels....for common guests and for logged / registred users.
He wants that on the top of the site is login form...when user is logged that "hidden" parts of the site be visible....
Cookie or session...no matter...just is important that works with include function...that before that included page is loaded it cheks if user is logged or not.
If its not logged (no session or no cookie) include does not include ..
Sorry for my bad english...
P.S. It can be this way...usualy its included content.php .... if user is logged instead content.php it includes content_reg.php ....
This is Ok too.