// Add a roll, for an accepted late roll or proxy roll
function add_single_roll()
{$RollerName = $_POST['RollerName'];
$roll = $_POST['roll'];
$rolltest = $_POST['rolltest'];
if ($rolltest == "")
{html_head();
html_body();
echo <<<FORM
<CENTER><TABLE BORDER="0" CELLPADDING="6" WIDTH="90%">
<TR><TH WIDTH="100%">Add a Random Roll</TH></TR>
<TR>
<TD>If a roll is accepted after logging has stopped (late roll/proxy roll), the additional roll can be added to the database below.
<P><FORM METHOD="POST" ACTION="addRoll.php" TARGET="main">
Roller Name: <INPUT NAME="RollerName" TYPE="TEXT" SIZE="20" MAXLENGTH="20"><BR>
Roll Number: <INPUT NAME="roll" TYPE="TEXT" SIZE="8" MAXLENGTH="8"><BR>
<INPUT TYPE="hidden" NAME="rolltest" VALUE="yes">
<INPUT TYPE="submit" VALUE="Add Roll">
</FORM></TD></TR></TABLE></CENTER>
FORM;
html_foot();
die();}
if ($RollerName == "" || $roll == "")
{html_head();
html_body();
echo <<<ERRORMSG
<CENTER><TABLE BORDER="0" WIDTH="90%" CELLPADDING="6">
<TR><TH>ERROR!</TH></TR>
<TR><TD>You are missing information, please go back and complete both the Roller Name and their roll</TD></TR>
</TABLE></CENTER>
ERRORMSG;
html_foot();
die();}
$query = "INSERT INTO seren_roller VALUES ('$RollerName', '$roll')";
mysql_query($query);
html_head();
html_body();
echo <<<LATEROLLADDED
<CENTER><TABLE BORDER="0" WIDTH="90%" CELLPADDING="6">
<TR><TH>Roll Added</TH></TR>
<TR><TD>$RollerName with a roll of $roll has been added</TD></TR>
</TABLE></CENTER>
LATEROLLADDED;
html_foot();
die();}