How Do You Pass A TID When Redirecting

Discussion in 'ClickBank' started by snotb4ll, Mar 3, 2009.

  1. #1
    Hello,

    I have my landing page setup in PHP right now at the top of my main page I have....

    <?php

    if (!empty($_REQUEST['tid'])) {

    $tid = $_REQUEST['tid'];
    $tid = "?tid=$tid";

    }
    ?>

    Then after my URL's I have something like this...

    http://www.mysite.com/go/money/<?php echo $tid; ?>

    In side the money folder is a index.php file but I want the tracking TID to carry through the redirect so it tracks all the way while redirecting.

    On my redirect page I have...

    <?php
    header( 'Location: http://www.website.com' ) ;
    ?>

    However the TID does not carry over and does not show up. I want to track my clicks to my main webiste, and have my affiliate urls redirect but keep the TID in place.

    This way works fine without redirecting my affiliate urls however people can then easily see my links so I want to setup redirects to avoid that.
     
    snotb4ll, Mar 3, 2009 IP
  2. goscript

    goscript Prominent Member

    Messages:
    2,753
    Likes Received:
    306
    Best Answers:
    0
    Trophy Points:
    315
    #2
    Create the redirect url like this:

    $url="http://www.website.com?tid=".$tid;
    header('Location: $url') ;
    PHP:
     
    goscript, Mar 3, 2009 IP