Subid/php tracking question

cheezile

New member
Jun 21, 2009
230
3
0
I have a page setup, and this is what i have so far

my ad url is mywebsite.c om/offer/?sub=1

then on my page i'm trying to have it redirect after a few seconds, and then grab the subid and put it onto the end of my affiliate link so i have..

Code:
<?php

$sid = $_GET["sub"];

?>

Code:
<meta http-equiv="REFRESH" content="3;url=http://myaffiliatelink.com/subid=<? echo $sid; ?>">

I'm having a problem though, I do html in aptana, but for some reason the first string of php code is showing up in a dark shade of grey which i think means that it isn't working. I have the page saved as .php, so i'm not sure what exactly i need to do. I also tested it out, and it isn't grabbing the subid. Anyone know how to fix this? Or if i'm even doing this right?