A litte help please...
Posted: Fri Mar 20, 2009 11:21 am
I'm trying to make a simple link system on my website. My friend had coded this previously and it worked. I basically tried to recode it myself with a little help from him over a chat session and for some reason it's just not working. If someone could help point out what I'm doing wrong, I would appreciate it very much.
$page = 'home.php';
$link = 'home'; <====== was $_GET['home.php']; but I changed it.
if ($link == 'home'){
$page = 'home.php';
}
if ($link == 'links'){
$page = 'links.php';
}
if ($link == 'about'){
$page = 'about.php';
}
include $page;
It's not giving me any errors... It's just not pulling up the content from the other php files. Maybe I should change the page= to use the $_GET variable?
$page = 'home.php';
$link = 'home'; <====== was $_GET['home.php']; but I changed it.
if ($link == 'home'){
$page = 'home.php';
}
if ($link == 'links'){
$page = 'links.php';
}
if ($link == 'about'){
$page = 'about.php';
}
include $page;
It's not giving me any errors... It's just not pulling up the content from the other php files. Maybe I should change the page= to use the $_GET variable?