Forum Moderators: coopster

Message Too Old, No Replies

How would I change the title of page?

...when clicking on link that changes the include file.

         

electricocean

5:53 am on Mar 30, 2005 (gmt 0)

10+ Year Member



How woud I make a script that changes the page title when I change the include file?

I have a code and it doesn't work:


case 1:
define ('TITLE', 'Dkicks Jokes: News');
@include('includes/news.inc');
break;

Whats wrong with the code?

or just:
whats a code that would work?

ha... thanks

electricocean

dreamcatcher

8:43 am on Mar 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Rename news.inc to news.inc.php

Then use the defined variable on this page:

<title><?php echo TITLE;?></title>

Notice there is no $ with defined variables.

dc