2011-02-23 78 views
0

我有一個表格由於某種原因不提交。有沒有特別的理由不提交?那就是:這張表格有沒有任何理由不提交?

<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> 
+1

,你需要有一個動作(某些頁面提交給)..並努力使該輸入類型按鈕鍵入=提交 – corroded 2011-02-23 04:23:13

+0

@腐蝕的感謝,行動是好的,因爲它提交給自己,但我搞砸了按鈕t YPE。謝謝!全部固定。 – chromedude 2011-02-23 04:25:43

回答

4

變化

<input type="button" value="Sign Up" class="formBttn" name="submit">

<input type="submit" value="Sign Up" class="formBttn" name="submit">