Design Posted March 3, 2007 Share Posted March 3, 2007 What I want to do is have my site so that when a user clicks a link, it uses the $GET method and uses a dynamic title for the target URL. My question is, how would I get this to work, I want it to set the variable for the $GET method, and then load up the same page, but with different content in the main portion of the page. I'd like to figure out to do this before I start the coding of my site, so that I can just implement it as I go. Thanks to anyone who helps me out on this. Link to comment https://forums.phpfreaks.com/topic/40959-solved-how-to-go-about-doing-this/ Share on other sites More sharing options...
ted_chou12 Posted March 3, 2007 Share Posted March 3, 2007 This should be included in the page that you want a dynamic title for: <?php $title=$_GET['title']; ?> <head> <title><?php echo $title?></title> </head> when you enter pagename.php?title=MyPage the title of the page will show up MYPage. Ted Link to comment https://forums.phpfreaks.com/topic/40959-solved-how-to-go-about-doing-this/#findComment-198553 Share on other sites More sharing options...
Design Posted March 3, 2007 Author Share Posted March 3, 2007 Thanks Link to comment https://forums.phpfreaks.com/topic/40959-solved-how-to-go-about-doing-this/#findComment-198562 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.