How to cloak affiliate link and send subid info?

Discussion in 'Affiliate Programs' started by topcash, Feb 21, 2008.

  1. #1
    I am trying to figure out how to use the php cloak link and still send subid info thru. Stuff like keywords, source etc.


    <?php
    header("Location:http://www.affiliatelinkhere.com/1234?subid=");
    ?>

    subid= is what I am trying to figure out how to pass from the main page link.
     
    topcash, Feb 21, 2008 IP
  2. Joobz

    Joobz Peon

    Messages:
    598
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use it in a variable..... I'm guessing nobody has helped you yet because this looks like it belongs in the php forum
     
    Joobz, Feb 25, 2008 IP
  3. jared

    jared Peon

    Messages:
    231
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    off the top of my head something along the lines of....

    
    <?php
    
    $kw = rawurlencode(strip_tags(trim($_GET[kw])));
    
    header("Location: http://www.affiliatelinkhere.com/1234?subid=$kw");
    exit();
    
    ?>
    
    PHP:
    just play around and evolve something that suits your needs
     
    jared, Feb 28, 2008 IP
  4. Adwords.

    Adwords. Banned

    Messages:
    518
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Adwords., Mar 2, 2008 IP