-1
如果所有字段填寫到所需的8個最小字符並且單選按鈕被選中,如何使表單的提交按鈕找到新頁面。當我填寫欄位或將它們留空時,提交按鈕不會執行任何操作。感謝任何和所有的建議。HTML所有字段都不需要工作
HTML:
<form id="form1" method="POST" action=""><br>
<h6>Sign up using the form below...</h6><br>
<label>
Desired user name: <br>
<input type="text" name="username" size="15" minlength="8" maxlength="30" required title="8 characters minimum" required />
</label><br>
<label>
Password: <br>
<input type="password" name="password" size="15" minlength="8" maxlength="30" required title="8 characters minimum" required/>
</label><br>
<label>
Repeat Password: <br>
<input type="password" name="password" size="15" minlength="8" maxlength="30" required title="8 characters minimum" required/>
</label><br><br>
<input type="checkbox" name="agree" required/> I agree to the terms and service of this website<br><br>
<input class="account" type="submit" name ="Submit" value="Submit" formnovalidate onClick="window.location = 'http://www.google.com';"/><br><br>
</form>