very easy qustion??HELP??
Hi
I need a very simple php page but I couldn't write it yet
I need some help
the page should do this job:
if we goto www.mydomain.com/page.php
the page should do this :
include('body/index_body.php');
if we goto www.mydomain.com/page.php?mode=index
the page should do this :
include('body/index_body.php');
if we goto www.mydomain.com/page.php?mode=phpbb
the page should do this :
include('body/phpbb_body.php');
if we goto www.mydomain.com/page.php?mode=about
the page should do this :
include('body/about_body.php');
HOW CAN I DO THIS
PLEASE HELP
THANKS
AL_TNEN
Re: very easy qustion??HELP??
Quote:
Originally posted by Tnen
Hi
I need a very simple php page but I couldn't write it yet
I need some help
if it is so simple then why can't you do it??? and how do you know if it is simple if you can't do it in the first place. :rolleyes:
PHP Code:
<?php
switch $_GET["mode"]{
case "phpbb":
include("body/phpbb_body.php");
break;
case "about":
include("body/about_body.php");
break;
default:
include("index_body.php");
}
?>