Forum Moderators: coopster
<?php
if (isset($_COOKIE["urlnumber"])){
$valueurl=$_COOKIE["urlnumber"]+1;
if ($valueurl==5){
$valueurl=0;
}
} else {
$valueurl=0;
}
setcookie("urlnumber", $valueurl);
$sites = array("http://www.google.co.uk", "http://www.yahoo.com", "www.apple.com", "www.bing.com", "http://www.sitepoint.com/");
$url_redirect=$sites[$valueurl];
header('Location: '.$url_redirect);
?> [edited by: eelixduppy at 4:19 pm (utc) on Apr 26, 2011]
[edit reason] no URL signatures, please [/edit]