From c3a629cd743bdbad3ac1e44aae428b4114ed6c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=A8=E4=B8=9A?= <2166507118@qq.com> Date: Mon, 6 Jun 2022 05:28:54 +0000 Subject: [PATCH] =?UTF-8?q?=E7=8E=8B=E5=85=A8=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20220605 \344\277\256\347\213\227.md" | 189 ++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 "\347\216\213\345\205\250\344\270\232/20220605 \344\277\256\347\213\227.md" diff --git "a/\347\216\213\345\205\250\344\270\232/20220605 \344\277\256\347\213\227.md" "b/\347\216\213\345\205\250\344\270\232/20220605 \344\277\256\347\213\227.md" new file mode 100644 index 0000000..38e1576 --- /dev/null +++ "b/\347\216\213\345\205\250\344\270\232/20220605 \344\277\256\347\213\227.md" @@ -0,0 +1,189 @@ + + + + +```php +我宠物管理"; + +}else{ + echo "你还没有登录,请登录"; +} + + 0) { + //成功后,将用户名写入session + $_SESSION['user_name'] = $user_name;// 相当于是成功后有个标识 + // echo "登录成功,查看主页!"; + // 登录成功,直接跳转到主页 + header('location:' . 'index.php'); + } else { + echo "登录失败!"; + } +} +?> + + + + +
+ + + +