Quote:
Originally posted by va2k
setting cookies so if a surfer visited a page before and you dot want him to visit it a gain it will redirect him to the page you want him instead of the page you dont want him or her.
TOM
|
Well if you do this other thing.........
here is some quick php code that should work (test it first just writing in the little gfy box here) :
\<\?php
if (!$_COOKIE['iamahomo']) {
setcookie("iamahomo","Yes");
} else {
header("Location:
http://www.iamnotahomo.com/pagetobeserverd.html");
}
?>
fuckin thing.... take out the 2 \'s on the first line ... doesnt wanna output it and if you do in PHP tag its fuckin tiny