我有一张由于某种原因不提交的表格。它有什么特别的理由不提交吗?这是:
<div id="formContainer">
<div id="formErrors"></div>
<form id="centeredForm" action="?" method="post">
<p id="formTitle">Register</p>
<table id="formTable">
<tr class="rowHover"><td class="hoverPad">
<label>Username</label>
</td><td>
<input type="text" class="formInput" name="username">
</td></tr>
<tr class="rowHover"><td class="hoverPad">
<label>Email</label>
</td><td>
<input type="text" class="formInput" name="email">
</td></tr>
<tr class="rowHover"><td class="hoverPad">
<label>Password</label>
</td><td>
<input type="password" class="formInput" name="password1">
</td></tr>
<tr class="rowHover"><td class="hoverPad">
<label>Retype Password</label>
</td><td>
<input type="password" class="formInput" name="password2">
</td></tr>
<tr class="rowHover"><td class="hoverPad">
<label>Alpha Code</label>
</td><td>
<input type="text" class="formInput" name="alphacode">
</td></tr>
<tr><td>
</td><td>
<input type="hidden" value="TRUE" name="submitted">
</td></tr>
<tr><td>
</td><td class="rowHover" id="tosRow">
<input id="tosagreeCheck" type="checkbox" name="tosagree">
<label for="tosagreeCheck">I agree to the <a>Terms of Service</a></label>
</td>
</tr><tr>
<td></td>
<td>
<input type="button" value="Sign Up" class="formBttn" name="submit">
</td></tr>
</table>
</form>
</div>
答案 0 :(得分:4)
更改
<input type="button" value="Sign Up" class="formBttn" name="submit">
到
<input type="submit" value="Sign Up" class="formBttn" name="submit">