AlanAyazyam
12-13-2009, 04:42 AM
I am having a heck of time with this PHP crap! I'm trying to redirect a link to my clickbank affiliate code, and at the same time insert a tracking code.
XXXX=affiliate id
<?php $strKeyword = $_GET['kw']; header("Location: XXXX?tid=". $strKeyword ) ; ?>
Then, to insert the id, I would type:
www.site.com/folder/offer.php?kw=TRACKING ID
ANYWHO! This is so weird because it totally worked for one of my links. But now I can't recreate it! That one link works but even when I use the EXACT SAME code in a similar situation it doesn't work. :mad:
Now it sends me an error saying that is an unexpected T_VARIABLE. Which is great, but I don't know which one it is or how to fix it! And if it's truly wrong, why would it work the other time. Why would it work once for one thing and then not work for the exact same situation another time???? :confused:
XXXX=affiliate id
<?php $strKeyword = $_GET['kw']; header("Location: XXXX?tid=". $strKeyword ) ; ?>
Then, to insert the id, I would type:
www.site.com/folder/offer.php?kw=TRACKING ID
ANYWHO! This is so weird because it totally worked for one of my links. But now I can't recreate it! That one link works but even when I use the EXACT SAME code in a similar situation it doesn't work. :mad:
Now it sends me an error saying that is an unexpected T_VARIABLE. Which is great, but I don't know which one it is or how to fix it! And if it's truly wrong, why would it work the other time. Why would it work once for one thing and then not work for the exact same situation another time???? :confused: