I used :

PHP Code:
if ($_COOKIE['referer']==""){
    if(
$_REQUEST['ref'] != ""){
            
setcookie("referer",[b]$_REQUEST['ref'][/b],time()+7200);
            
$refer=[b]$_REQUEST['ref'][/b];
    }
 } else {
    
$refer=$_COOKIE['referer'];
 } 

And it fixed it

: Forgot to change post tho to *Fixed* *changes now*: