Forum Moderators: coopster

Message Too Old, No Replies

PHP Navigation problems

PHP Navigation problems

         

PumpkinHead

8:45 am on Aug 24, 2004 (gmt 0)

10+ Year Member



Hi,

I have been designing a website and use PHP includes for the navigation.

E.g

Links are defined as...

<a href="../mysite/index.php?page=page1" class="nav">First Page</a>

And then php code as...

if ($page=="page1") {include("../mysite/pages/p1.php"); };

I have been using this method for a while as I have not learnt a great deal of PHP. I have found that when I try to use 3rd party software on my site (E.g photo albums) they refuse to work as the 'Headers are already defined'.

Is there a way I can modify this code so that I am not using headers?

Hope someone can help!

lazydog

11:18 am on Aug 24, 2004 (gmt 0)

10+ Year Member



Hi!

You might want to look at output cotrol functions in PHP.

[php.net...]

Hope that helps,

Saurabh.