View Single Post
Old 11-14-2002, 12:45 PM  
Rory
Confirmed User
 
Join Date: Jul 2002
Location: I Love Ixtapa, Mexico ö
Posts: 616
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

Last edited by Rory; 11-14-2002 at 12:47 PM..
Rory is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote