Yeah, its strange. several other students in the class are having the same problem. here is my code for the first two pages. appreciate any advice...
[/B]This is the 1st page
<?php
session_start();
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Multiple Choice Exam</title>
<style type="text/css">
body {font-size:18px; background-color:#CCCC33; color:#990000}
a:link {color:#FF0000}
a:visited {color:#FF0000}
a:hover {color:#993300}
a:active {color:#FF0000}
</style>
</head>
<body>
<form action="CNance_7-2_exam2.php" method="post">
Multiple Choice Exam.<br /><br />
Enter your name: <input type="text" name="name" size="20"><br /><br />
<?php
$hidden = 'Ready to take the exam';
session_register('hidden');
?>
<input type="submit" value="start the exam"> <input type="reset" value="reset">
</form>
</body>
</html>
This is the 2nd page
<?php
session_start()
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Multiple Choice Exam</title>
<style type="text/css">
body {font-size:18px; background-color:#CCCC33; color:#990000}
a:link {color:#FF0000}
a:visited {color:#FF0000}
a:hover {color:#993300}
a:active {color:#FF0000}
</style>
</head>
<body>
<?php
$question1 = $POST['question1'];
$question2 = $POST['question2'];
session_register('question1','question2');
if (!isset($question1) || !isset($question2)){
print "Please answer all questions before continuing!<br />";
print '<a href="CNance_7-2_exam2.php">go back</a>';
}else{
print "$hidden2 $name?<br /><br />";
print '<form action="CNance_7-1_exam4.php" method="post">';
print '3) Who upset the top-seeded Heels in the 2nd round of the 1994 NCAA Tournament?<br />';
print '<input type="radio" name="question3" value="A">Boston College<br />';
print '<input type="radio" name="question3" value="B">Dook<br />';
print '<input type="radio" name="question3" value="C">UCLA<br />';
print '<input type="radio" name="question3" value="D">Syracuse<br /><br />';
print '4) Who is considered the best point guard to ever play at UNC?<br />';
print '<input type="radio" name="question4" value="A">Phil Ford<br />';
print '<input type="radio" name="question4" value="B">Raymond Felton<br />';
print '<input type="radio" name="question4" value="C">Kenny Smith<br />';
print '<input type="radio" name="question4" value="D">Ed Cota<br /><br />';
print 'Submit these answers and view your results on the exam<br /><br />';
print '<input type="submit" value="submit"> <input type="reset" value="start over">';
print '</form>';
}
$hidden3 ='You done! here are your results';
$hidden4 ='Thanks for taking the exam';
session_register('hidden3','hidden4');
?>
</body>
</html>