<html>
<head> <title> Hangman </title> </head>

<server>   
if (request.again ==  "yes")
   {
       client.gameno = 1 + parseInt(client.gameno,10);
       client.newgame = "true";  // set flag to initialize new game
       redirect("hangman.html");  // redirect back to hangman page to play again.
   }
   else if (request.again == "no")
      redirect("thanks.html");  // redirect to thanks page. 
</server>

<body>
<h1>CONGRATULATIONS, YOU WON!!!</h1>

<pre>
<server>write(client.answer);</server> 
</pre>

<P>
<form method="post" action="14">
<P>
Do you want to play again?
<input type="radio" name="again" value="yes">YES
<input type="radio" name="again" value="no">NO
<p>
<input type="submit" value="Enter">  
<input type="reset" value="Clear">

</body>
</html>

