How to transfer kw value to redirect page?

Discussion in 'PHP' started by mphilips, Jul 3, 2008.

  1. #1
    I'm stuck on this part :( Any help would be great.

    So, I've gotten the keyword with _GET how would I go about transferring or calling that keyword on a different page?

    Ex: Someone found my site - I got their keyword stored in kw - they click my go.php which is a redirect with my affiliate link. How do I take the keyword from the main landing page and add it to the go.php so I can use it with my tracking?

    Hope it is easy enough to understand.

    Thanks
     
    mphilips, Jul 3, 2008 IP
  2. Bryce

    Bryce Peon

    Messages:
    1,235
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can simply pass along on the query string

    ie:

    and use $_GET['keyword'] to get the value

    ie:

     
    Bryce, Jul 3, 2008 IP
  3. Nextri

    Nextri Member

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Or save the keyword in a session variable, or even a cookie..

    but like Bryce suggested would work.


    $kw = $_GET['keyword'];
    then wherever you link to go.php, link to it like /go.php?kw=$kw
     
    Nextri, Jul 3, 2008 IP
  4. mphilips

    mphilips Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    haha, so easy :p thank you guys for the help. I'm still learning so I often overlook things :)
     
    mphilips, Jul 3, 2008 IP