mac007 Posted May 27, 2008 Share Posted May 27, 2008 Hello, all: Say have 3 separate landing pages on my site (or more even), but they all end up at one common destination, how can i make it so each visitor can then go back to landing page they came from? here's the scenario: Say I have links from Google, Yahoo, and mySpace that take people to each "site's" landing page; so for Google ads I would have my own "Google-Landing-page"... so this way I can keep track of visitors on a per landing-page basis. Thing is, once each person reaches their own landing page, they are then taken to set of pages whcih are then common to all... I want to in turn be able to put a link ("Back to Landing Page" button) in these common pages so they each can go back to the landing page each of them came from (Yahoo-persom, goes back to yahoo-landing page, Google person goes back to Google Landing-page and so forth. I thought probably set some kind of a cookie, but not exatly sure how, or even if it's the right way... to do that. thanks in advance! Link to comment https://forums.phpfreaks.com/topic/107520-solved-have-3-separate-landing-pages-but-1-common-destination-how-can-i-make-it-so-then/ Share on other sites More sharing options...
BlueSkyIS Posted May 27, 2008 Share Posted May 27, 2008 sessions. on landing page, store a var to use later, then use it: landingpage.php <?php session_start(); $_SESSION['landing_url'] = 'http://www.cnn.com/'; anyotherpage.php <?php session_start(); echo "<A href='".$_SESSION['landing_url']."'>Back to landing page.</A>"; ?> Link to comment https://forums.phpfreaks.com/topic/107520-solved-have-3-separate-landing-pages-but-1-common-destination-how-can-i-make-it-so-then/#findComment-551157 Share on other sites More sharing options...
mac007 Posted May 28, 2008 Author Share Posted May 28, 2008 Hey, BlueSky... this does look like is what I need... gonna test it and let you know how it goes... (I know it's simple, but with my skills even the most basic stuff becomes hell-on-earth!) thanks! Link to comment https://forums.phpfreaks.com/topic/107520-solved-have-3-separate-landing-pages-but-1-common-destination-how-can-i-make-it-so-then/#findComment-551348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.