Home >Web Front-end >HTML Tutorial >The same form, jump to different pages according to the button clicked_html/css_WEB-ITnose
<html> <head> <title>登陆界面</title> </head> <body > <form action="SignIn" method="Get"> 用户:<input type="text" name="username"><br/> 密码:<input type="password" name="password"><br/> <input type="submit" name="sign" value="登陆"> <input type="submit" name="login" value="注册"> </form> </body></html>
<form action="SignIn" method="Get" name="form1"> 用户:<input type="text" name="username"><br/> 密码:<input type="password" name="password"><br/> <input type="submit" name="sign" value="登陆" onclick="javascript:form1.action='login.html';"> <input type="submit" name="login" value="注册" onclick="javascript:form1.action='register.html';"> </form>