Passing variables in redirect
I won't bore you here with the details of why I want to do this, but can anyone please tell me how?
MyClickTracker-AffLink ----to----> clicktracker (which appends a location-based tracking ID, e.g. ?tid=sidebar) ----to----> php-redirect, which picks up the TID in the link before finally redirecting to the vendor page.
*phew!*
An example might be:
satellitesite01.com/linktracker/juicyapples
----to---->
[link-tracking program, which is set to the following link with variable]
mainsite.com/growingapplesebook.php?tid=sidebar
----to---->
[growingapplesebook.php is, itself, a standard php header redirect which contains myAffID and picks up the tid]
vendorpage.com&hop=myaffID&tid=sidebar
--------------------------------
I've tried using [GET] and [REQUEST] functions like this in the "growingapplesebook.php" file:
[[php
header( 'Location: hxxp://mylinkhere.com/?[[php echo $_REQUEST["tid"]; ]]' ) ;
]]
...and...
[[php
header( 'Location: hxxp://mylinkhere.com/?[[php echo $_GET["tid"]; ]]' ) ;
]]
But neither are picking up the "tid" variable, i.e. "sidebar" in this example.
If anyone can help me out with this, I'd be GREATLY appreciative!
Thanks very much ,
TheNightOwl
=============================
P.S. And in the event that you are interested as to why...
I want to be able to track which locations/links/banners/etc are leading to conversions by placing a tid linked to each location (e.g. sidebar, banner01, textlink, etc.)
But... I don't want to create fifty thousand links in my link-tracker (with location tids on every link) and then have to go back in and change them all if I want to change the CB affiliate nick.
Instead, I want to be able to point ALL links for Product-A to product-A.php (redirect) and get that redirect to "grab" whichever location TID I append to it in the link-tracker (e.g. product-A.php?tid=sidebar, product-A.php?tid=banner01, etc..
Does that make sense at all? (I have a feeling I'm overcomplicating it! LOL! )
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."