From 4cfa12d75221a8509bd6b2afd2b1f6665e01bde2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=A8=E4=B8=9A?= <2166507118@qq.com> Date: Thu, 2 Jun 2022 16:21:32 +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 --- ...32\350\257\235\350\241\250\345\215\225.md" | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 "\347\216\213\345\205\250\344\270\232/20220602\344\274\232\350\257\235\350\241\250\345\215\225.md" diff --git "a/\347\216\213\345\205\250\344\270\232/20220602\344\274\232\350\257\235\350\241\250\345\215\225.md" "b/\347\216\213\345\205\250\344\270\232/20220602\344\274\232\350\257\235\350\241\250\345\215\225.md" new file mode 100644 index 0000000..68059c9 --- /dev/null +++ "b/\347\216\213\345\205\250\344\270\232/20220602\344\274\232\350\257\235\350\241\250\345\215\225.md" @@ -0,0 +1,79 @@ +# 作业 + +```php + + 查看信息"; + }else{ + echo "登录失败返回"; + } +}else{ + ?> + + + 登录 + + + +
+ + + + + + + + + + + + +
用户名
密码
+ + +
+
+ + + + + +返回登录页"; + + + +请先登录"; + exit(); +} +setcookie('lasttime',time(),time()+60*60); +if(empty($_COOKIE['lasttime'])){ + echo "第一次登录
"; +}else{ + echo "欢迎回来,你上次来访时间为".date('Y-m-d H:i:s',$_COOKIE['lasttime'])."
"; +} + +echo $_SESSION['user']."你账户余额为0.00001元"; +echo "退出登录 "; + +``` -- Gitee