C
Cam
I don't know if this is the right forum, but I need help.
I've recently taken over a site from another webmaster, to keep with updates
and such. Problem is, I can't get it to work right. It's done in PHP. The
problem:
There's a link menu, with a couple of links. However, when clicking on them,
you just get to the same page all the time.
In the head-tag, you will find this code:
Länkkoden är: <a href="<?=$PHP_SELF?>?link=start">
I head-taggen finns följande kod:
<?PHP
$sidan = $link.'.php';
if ($sidan==".php") {
$sidan = "start.php";
}
//print $sidan;
?>
In the body tag, the link information looks like this:
<a href="<?=$PHP_SELF?>?link=start">
<a href="<?=$PHP_SELF?>?link=showblizz">
<a href="<?=$PHP_SELF?>?link=medlem">
etc. There's also the code for where the PHP is going:
<?include($sidan)?>
What on earth am I doing wrong? I suppose it's the code in the head-tag
that's the problem; If I change 'start.php' to another page, that page will
show the whole time instead. How do I get the respective pages to show??
Cam
I've recently taken over a site from another webmaster, to keep with updates
and such. Problem is, I can't get it to work right. It's done in PHP. The
problem:
There's a link menu, with a couple of links. However, when clicking on them,
you just get to the same page all the time.
In the head-tag, you will find this code:
Länkkoden är: <a href="<?=$PHP_SELF?>?link=start">
I head-taggen finns följande kod:
<?PHP
$sidan = $link.'.php';
if ($sidan==".php") {
$sidan = "start.php";
}
//print $sidan;
?>
In the body tag, the link information looks like this:
<a href="<?=$PHP_SELF?>?link=start">
<a href="<?=$PHP_SELF?>?link=showblizz">
<a href="<?=$PHP_SELF?>?link=medlem">
etc. There's also the code for where the PHP is going:
<?include($sidan)?>
What on earth am I doing wrong? I suppose it's the code in the head-tag
that's the problem; If I change 'start.php' to another page, that page will
show the whole time instead. How do I get the respective pages to show??
Cam