PDA

View Full Version : Can someone help me with page rotation script in CGI?


GooodWill
07-23-2001, 01:29 PM
I would like to change index page like this:
<?php
$count++;
SetCookie("count", $count, time()+300);

if ($count==1) include("index1.html");
elseif ($count==2) include("index2.html");
else include("index3.html");
?>

but I dont know, how this do in CGI.
Every visitor cant see the same page twice. (except index3.html)