Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Publisher / Web Design / November 2005

Tip: Looking for answers? Try searching our database.

PHP problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cam - 02 Nov 2005 12:12 GMT
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
David Bartosik - 02 Nov 2005 19:04 GMT
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.
Signature

David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com

> I don't know if this is the right forum, but I need help.
>
[quoted text clipped - 34 lines]
>
> Cam

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.