I have this script here which is to navigate a randomized array through the next button.The problem is that the randomized array $Rand[] is not being pass to this script.
The output i get is only "question 4=="
without the array element.It seems like session doesn;t work here.
Is it the session problem?
Or can u guys recommend any other method of passing the randomized array.
Please advise.
Thanks
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<head>
<title>Title here!</title>
</head>
<body>
<?php
session_start();
session_register("i");
if ($i==49||$i==50){
$i=0;
echo "question $i==$Rand[$i]";
}
else if($i>=0&&$i<49){
$i=$i+1;
echo "question $i==$Rand[$i]\n";
}
$i=$i++;
//echo "num==$i";
?>
<form action="next2.php" method="post">
<input type="hidden" name="i">
<input type="Submit" value="Next">
</form>
</body>