I'm not really fluent in PHP and I have an idea how to do this but I just cant seem to get it down right.
What I want to do:
Have redirect.php meta refresh (needs to be meta refresh, header wont work) to a tracking url based on what variable offer = , as well as pass the kw variable into the tracking url.
ex/
given redirect.php?offer=001&kw=wickedfire
-> redirect.php selects the offer under 001 then meta refreshes to that link while passing through kw=wickedfire
What I have so far:
What I'm stuck on:
how to do the meta refresh, and how to correctly pass the $kw, I'm guessing I need to throw an echo in there?
If anyone could spare a few seconds it'd be much appreciated, since its been driving me crazy trying to google all the parts together while checking for lil syntax errors... lol
*edit my bad about the title, Just realized there is some major grammar issues there - damn jetlagg...
What I want to do:
Have redirect.php meta refresh (needs to be meta refresh, header wont work) to a tracking url based on what variable offer = , as well as pass the kw variable into the tracking url.
ex/
given redirect.php?offer=001&kw=wickedfire
-> redirect.php selects the offer under 001 then meta refreshes to that link while passing through kw=wickedfire
What I have so far:
PHP:
<?
$kw = $_GET['t202kw'];
$offer = $_GET['offer'];
if ($offer == "001")
{$jumplink= "http://tracker.com/tracking202/redirect/dl.php?t202id=1264&t202kw=$kw";}
if ($offer == "002")
{$jumplink= "http://tracker.com/tracking202/redirect/dl.php?t202id=1264&t202kw=$kw";}
how to do the meta refresh, and how to correctly pass the $kw, I'm guessing I need to throw an echo in there?
If anyone could spare a few seconds it'd be much appreciated, since its been driving me crazy trying to google all the parts together while checking for lil syntax errors... lol
*edit my bad about the title, Just realized there is some major grammar issues there - damn jetlagg...