blaze718
12-31-2008, 02:07 AM
Basically i created a Splash Page and my member would like a option to skip it after one time.
--------------- Added 1230778886 at 1230778886 ---------------
Heres the code im using
<?php
if($_POST['submit']){ //If the form is submited
if($_POST['show']){ // and checkbox is ticked
setcookie('welcome','yes',time()+60*60*24*30); // Set cookie expires in 30 days
header('Location:http://www.nexonkiller.com');
}
}
?>
<center>
<?php
if(isset($_COOKIE['welcome']) and ($_COOKIE['welcome']=='yes')){ //If the cookie exists
header('Location:http://www.nexonkiller.com/forum'); // Redirect to the page you want
}
?>
<INPUT TYPE="CHECKBOX" NAME="NK" VALUE="Check the Box if you wish to skip this page the next time this site is visited">Check the Box if you wish to skip this page the next time this site is visited<BR>
</center>
But it only works for flash intros.
Anyone got one for non flash?
--------------- Added 1230778886 at 1230778886 ---------------
Heres the code im using
<?php
if($_POST['submit']){ //If the form is submited
if($_POST['show']){ // and checkbox is ticked
setcookie('welcome','yes',time()+60*60*24*30); // Set cookie expires in 30 days
header('Location:http://www.nexonkiller.com');
}
}
?>
<center>
<?php
if(isset($_COOKIE['welcome']) and ($_COOKIE['welcome']=='yes')){ //If the cookie exists
header('Location:http://www.nexonkiller.com/forum'); // Redirect to the page you want
}
?>
<INPUT TYPE="CHECKBOX" NAME="NK" VALUE="Check the Box if you wish to skip this page the next time this site is visited">Check the Box if you wish to skip this page the next time this site is visited<BR>
</center>
But it only works for flash intros.
Anyone got one for non flash?