<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>take the Dan Quayle test</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
</head>
<body>
<h1>Take the Dan Quayle Quiz</h1>
<form action="dan_quayle_quiz.php"><div>
<?php
$answer=$_GET['answer'];
print '<label for="answer">How do you spell "potato"?</label>';
print "<input type=\"text\" size=\"10\" name=\"answer\"
value=\"$answer\" id=\"answer\"/>\n";
// if an answer has been submitted
if($answer) {
// check if answer is correct
if($answer == "potato") {
print "<h2>Correct!</h2>\n";
}
else {
print "<h2>Try again, Dan!</h2>\n";
}
}
?>
</div>
</form>
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
style="border: 0pt"
src="/valid-xhtml10.png"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</p>
</body>
</html>