Ok, here is my code. What it is supposed to do is retrieve the referer that sent you to the page, the user will type someurl.com/refcreate.php?ref=username
&
You're assigning a variable and not comparing it
This refcheck($referer) = false
Should be refcheck($referer) == false
Also, your method should have a default return if your IF condition fails.
ok i figured out hte problem or problems rather 1 was it need to look like this if(refcheck($referer) == false){} instead of if(refcheck($referer) = false); so a missing equal sign and a misplaced colon :P thanks guys
you misspelled "check" in the third line