PHP problem

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
 
D

David Bartosik

Since php is not a Microsoft Technology, your being in the Microsoft
Community doesn't make much sense, and, you are not using Microsoft Publisher
to create a web site, your being in this MS Publisher forum makes no sense.
You will be better served by finding and using a forum relevant to you.
I recommend looking in Google Groups for php communities.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top