PDA

View Full Version : skip this page in the future .....


corsacrazy
03-12-2003, 04:10 PM
maybe in the wrong area, but i wont to do this myabe usin php

ive made a splash page, and i wanna have a small checkbox next to the enter button saying "do u wish to skip thispage next time" then if they do re acess that page it will jump into the page they wood of went to if they click the enter button ! u get me? cheers in advance

filburt1
03-12-2003, 04:32 PM
Use cookies, and when the page loads check and see if the cookie is set. If it is, then use header() to redirect to the second URL.

corsacrazy
03-12-2003, 04:43 PM
so what exactly wood i need to include in my source ?

filburt1
03-12-2003, 04:53 PM
Well I'm not going to write the whole thing for you but look at http://www.php.net/cookie for how cookies work in PHP.

mr e
03-12-2003, 09:30 PM
to set a cookie

setcookie("skippage", "1", time()+3600);


to check for a cookie

if(isset($_COOKIE["skippage"])) {
header("Location: index.php");
}

corsacrazy
03-13-2003, 05:54 AM
ok cheers people !