Jump to content

includes and head title


smerny

Recommended Posts

I currently have a forum.index.php page which uses $_GET to decide if it's going to show the main forum, a board in the forum, or a topic... and then which to show... I'm using includes, so like if $_GET['mode'] is "topics" it will include topic.php, then it will display posts in where topic ID is $_GET['id']

 

the question i have is... with all of this, how can i make the head title the same as the topic title? I currently have all the header information and menu/header on the index.php page... Do I have to take that information out of there and put it separately into each board.php and topic.php and whatever else?

Link to comment
https://forums.phpfreaks.com/topic/170463-includes-and-head-title/
Share on other sites

you can have the banner change much the same you would have the page itself change. Based on the $GET variable, show a specific image. You can easily just echo PHP under the source attribute for the img tag, or have PHP write all the html Itself.

 

Hope that helps

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.