<table width="40" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td width="40" align="center" > </td>
</tr>
<tr>
<td align="center"> <TABLE align=center border=0 cellPadding=5 cellSpacing=1 width="310">
<TBODY>
<TR>
<form name='form1' method='post' action=''>
<TD align=right class=txt_gray width="106"> <span class=normal_text_white>Hero
</font> </TD>
<TD width="301"> <?
print'<select class="button" name="name" size="1" id="name">';
$query = mssql_query("select [AccountID],[Name],[CtlCode],[Resets],[cLevel] from [Character] where [AccountID]='$_SESSION[user]' ");
while($result = mssql_fetch_array($query)) {
echo "<option value='$result[Name]'>$result[Name] - Resets: [$result[Resets]] Level: [$result[cLevel]]</option>";
}
print'</select>';
?>
<TD align=left class=txt_gray width="50"><input type="submit" name="Sumbit" class='button' value="Reset Hero" onclick="return validate(document.form1);"></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr>
<td height="25" align="left"> <table width="201" border="0" cellspacing="0" cellpadding="3">
<tr>
<div align=center></div>
</tr>
<br></td>
</tr></form>
<? if (isset($_POST["name"])){
include'modules/user/doreset.php';}
else{ print"</table></table>";}
?><br><br>
</td>
</TR>