![]() |
anyone know of a cookie script for...
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 |
Quote:
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 |
im getting this Warning: Cannot add header information - headers already sent by (output started at /home/sites/site14/web/ifriends.php:8) in /home/sites/site14/web/ifriends.php on line 16
|
Quote:
Rory |
great Fuck yea i t works thanks thanks thank :)
|
Quote:
Just keep in mind that some people have cookies completely disabled so its always nice to have a backup plan for people who dont have cookies enabled as well. Rory :helpme |
nice,i was looking for this too :)
|
All times are GMT -7. The time now is 07:12 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123