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