soulscriber Posted May 5, 2007 Share Posted May 5, 2007 I have an interesting question. This seems very doable however. I have external links pointing into my site, for example (http://www.mydomain.com/pages.php? + keyword from PPC campaign) When the user visits the page by clicking on the external links, I want pages.php to recognize what keyword was pulled and then populate field throughout the page with that keyword. Can this be done? Any help would be appreciated. Thanks. Link to comment https://forums.phpfreaks.com/topic/50076-using-referring-url-keyword-from-google-to-generate-a-content-page-on-the-fly/ Share on other sites More sharing options...
benjaminbeazy Posted May 5, 2007 Share Posted May 5, 2007 http://mydomain.com/pages.php?keyword=KEYWORD if(isset($_GET['keyword'])){ $keyword = $_GET['keyword']; }else{ $keyword = 'none'; } echo "Your keyword is: $keyword"; Link to comment https://forums.phpfreaks.com/topic/50076-using-referring-url-keyword-from-google-to-generate-a-content-page-on-the-fly/#findComment-245777 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.