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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Design Posted March 3, 2007 Author Share Posted March 3, 2007 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.