well first off this section of code is being complety ignored
$nextsite = $siteID++;
the '++' is only going to work with integers..
secondly this logic is competley off..
why don't you just use
next.php?p=1
next.php?p=2
next.php?p=3
and so on...
??
then for the code to switch pages..
switch($_GET['p'])
{
case '1':
include('site1.php')
break;
case '2':
include('site2.php');
break;
and so on...
}
if you need to actually switch fully websites then just do a meta redirection
case '1':
echo("<META http-equiv='refresh' content='2;URL=http://www.ASite.com/' >");
break;