Let say i have a page that can randomize an array of pages called shuffleselect.php.
i want to use this "NEXT" button here to point to the randomize page according to sequence.What should i do?
The problem is that every time i press the next button the whole script runs once,so the randomize array changes every time.I don't want that.I want the randomize array to run through all it's element before being randomize again.
please help.thanks in advance.
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<head>
<title>Title here!</title>
</head>
<body>
<?php
global $Rand;
if ($i==49){
$i=0;
echo "question $i==$Rand[$i]";
}
else if ($i>=0&&$i<49){
$i=$i+1;
echo "question $i==$Rand[$i];";
}
$i=$i++;
?>
<form action="shuffleselect3.php" method="post">
<input type="hidden" name="i">
<input type="Submit" value="Next">
</form>
</body>