#!/usr/bin/perl -w

use strict;
use CGI qw (:standard);
use CGI::Carp qw(fatalsToBrowser);

##############################
#
# This simply gets the name
# of the player.
#
# Last-Modified: Nov. 24, 2003 - 15:54 EST
#
##############################

print "Content-type: text/html\n\n";

my $reason = param('why') || "lose";
my $moves = param('moves') || "undefined";
my $time = param('time') || "undefined";

print << "END_OF_HTML";

<html>
<head>
<title>What's your name?</title>
</head>
<body>
<div align=center>
Please type your name in below, then click the button below.<br>
Please only use the alphabet and digits (a-z, A-Z, 0-9), and 15 characters MAX<br>
<form action="highs.cgi" method=POST>
	<input type="hidden" name="moves" value="$moves">
	<input type="hidden" name="time" value="$time">
	<input type="hidden" name="why" value="$reason">
	<input type="text" name="name" value="">
	<br><input type="submit" value="Submit Name">
</div>
</body>
</html>

END_OF_HTML
