Files
website_design/templates/signup.html
T

35 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<link rel="icon" href="{{ url_for('static', filename='icon.png') }}"> <!--添加图标-->
<title>注册</title>
</head>
<body>
<main>
<h1 style="text-align: center;">Sign up</h1>
<!-- <div id="error-message" style="color: red;"></div> -->
<form action="/signup" method="post" id="signup-form">
<label for="username">username:</label>
<input type="text" id="username" name="username" required><br>
<label for="password">password:</label>
<input type="password" id="password" name="password" required><br>
<label for="confirm-password">确认密码:</label>
<input type="password" id="confirm-password" name="confirm-password" required><br>
<label for="age">age:</label>
<input type="number" id="age" name="age" required><br>
<label for="captcha">captcha:</label>
<input type="text" id="captcha" name="captcha" required>
<img id="captcha-image" src="{{ url_for('captcha') }}" alt="Captcha"><br>
<button type="submit">sign up</button>
</form>
<!-- <footer>
<a href="{{ url_for('') }}">index</a>
</footer> -->
</main>
<script src="{{ url_for('static', filename='validate.js') }}"></script>
</body>
</html>