smerny Posted August 16, 2009 Share Posted August 16, 2009 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 More sharing options...
mikesta707 Posted August 16, 2009 Share Posted August 16, 2009 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 Link to comment https://forums.phpfreaks.com/topic/170463-includes-and-head-title/#findComment-899199 Share on other sites More sharing options...
smerny Posted August 16, 2009 Author Share Posted August 16, 2009 by head title, i meant <head><title>THIS</title></head>, but I suppose I could use the GET info for the id and mode both within the forum/index.php right away and then search the database... it would just require another search within the include also Link to comment https://forums.phpfreaks.com/topic/170463-includes-and-head-title/#findComment-899201 Share on other sites More sharing options...
mikesta707 Posted August 16, 2009 Share Posted August 16, 2009 Oh ok. Yeah the same logic applies there too, but just remember to do the search and php before the title tags Link to comment https://forums.phpfreaks.com/topic/170463-includes-and-head-title/#findComment-899203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.