注册.html:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Authorization page</title>
</head>
<body>
<form name="loginForm" method="POST" action="controller">
<input type="hidden" name="command" value="login"/>
<br/>Login:<br/>
<input type="text" name="login" value=""/>
<br/>Password:<br/>
<input type="password" name="password" value=""/>
<input type="submit" value="Log in" />
</form></hr>
</body>
</html>
转到 registration.html:
<a class="page-scroll" onclick="location.href='html/test.html';">Sign in</a>
从表单发送数据是通过 url 执行的:http://localhost:8080/airline/html/controller
1 个回答