Jump to content

[SOLVED] have 3 separate landing pages but 1 common destination how can I make it so then


mac007

Recommended Posts

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!

 

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>";
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.