Sometimes I send people to www.mysite.com/index.php?refid=eminem
Othertimes I send people to www.mysite.com/index.php
My code below is supposed to assist my tracking:
<?php
$target=$_GET['artist'];
$refid=$_GET['refid'];
$offer=2995;
if($refid-true) {
$subid=$refid;
}
else {
$subid="indexpage";
}
?>
What I am trying to do is say if I have passed a variable, I will set $subid to the refid value that was passed along. But if no refid value was passed along, then I will use the value "indexpage".
Is my code corrrect to do this? I used =false but I am not sure about this!
Thanks,
Jon