Jump to content

Different titles in included php


Guest Sound

Recommended Posts

I run a website were you could read a lot of reviews. Every review is included into the index.php via;

<?}elseif ($_GET['page'] == "stormwarriorheadingnorthereview"){?><? include("writings/stormwarrior_heading_northe_review.txt") ?>

I simply want the "Stormwarrior" review (and all the other reviews) to get a different title than the rest of the site. What should I do?

Link to comment
Share on other sites

Someplace in the script, you need to have the php code echo the value you have for the page title.

 <?phpecho '<title >'; echo $title;echo '</ title >' ?>

Or something like that. Perhaps use the $_GET['page'] variable as the value for title?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...