FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Disclaimer Redirection with cookies/sessions?





[FuN]goku
Right im wondering if someone could make me a script.....
Where it starts on a disclaimer page.
Now what i want is.. if they hit accept then they dont have to do it every time they go back to the site. Or if they decline then it redirects them to... about:blank or somehting... also i need it so if they view any of the site it will redirect them there... i have "Some" idea how to do i think.. but im not 100% sure. So....

Will pay 50 FRIH$
Thanks in Advance
mathiaus
Without giving any code ...

index.php
if a cookie has been set, display rest of page etc, otherwise redirect to or maybe better, include disclaimer.php

disclaimer.php
show what you want to say then have two buttons going to back to disclaimer.php
if accept, set a cookie and redirect to index
if not accept, redirect to google or whatever else
[FuN]goku
the thing is... i have no clue how to do anything with cookies and that kinda junk
[FuN]goku
anyone?
starfish2007
well to get more info about cookies and php youmight try out this site
http://www.softwareprojects.org/php-cookies-16.htm I my self have never used cookies but i think this site does a good job of showing you how to work with them good luck hope you find this helpfull
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.