Forgot to post the code I am using:
<?php
if ("" == "") {
setcookie("Referrer", "".((isset($_SERVER["HTTP_REFERER"]))?$_SERVER["HTTP_REFERER"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>
I know I just need something in the if (""=="") spot but I am not familiar enough with php yet to figure it out.