主要是根据黑马程序员的一门Flask快速入门课程记录的笔记。
视频地址:https://www.bilibili.com/video/av19817183/?p=15
1.原始的表单验证
页面代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form method="post">
<lable>用户名:</lable><input type="text" name="username"><br>
<lable>密码:</lable><input type="password" name="password"><br>
<label>确认密码:</label><input type="password" name="password2"><br>