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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...