You can use exactly the code described in the original thread, but instead of
Code:
<?php include("countclicks.inc.php");
$pages = array(
"pageone.php",
"pagetwo.php",
"pagethree.php"
);
$href = $pages[floor(getClicks() % count($pages))];
?>
<!-- ... stuff ... -->
<a href="<?php echo($href); ?>">Click Here</a>
use
Code:
<?php include("countclicks.inc.php");
$pages = array("pageone.php",
"pagetwo.php",
"pagethree.php");
header(sprintf('Location: %s/%s',
basename($_SERVER['REQUEST_URI']),
$pages[floor(getClicks() % count($pages))]));
?>
... to automatically redirect the user to the appropriate page without having to click anything.
Bookmarks