ZIPphp用户管理系统(简单) 17.12KB

modern358

资源文件列表:

UserSystem.zip 大约有25个文件
  1. UserSystem/
  2. UserSystem/.idea/
  3. UserSystem/.idea/UserSystem.iml 281B
  4. UserSystem/.idea/inspectionProfiles/
  5. UserSystem/.idea/misc.xml 174B
  6. UserSystem/.idea/modules.xml 272B
  7. UserSystem/.idea/workspace.xml 16.38KB
  8. UserSystem/chkuser.php 1.51KB
  9. UserSystem/conn.php 337B
  10. UserSystem/css/
  11. UserSystem/css/style.css 1.91KB
  12. UserSystem/index.php 1.04KB
  13. UserSystem/loginfail.php 536B
  14. UserSystem/logout.php 535B
  15. UserSystem/lostpassword.php 635B
  16. UserSystem/regfail.php 100B
  17. UserSystem/register.php 7.27KB
  18. UserSystem/regok.php 1.46KB
  19. UserSystem/showpassword.php 1.24KB
  20. UserSystem/showquestion.php 2.19KB
  21. UserSystem/sql/
  22. UserSystem/sql/member.sql 2.19KB
  23. UserSystem/userupdate.php 8.03KB
  24. UserSystem/userupdateok.php 1.06KB
  25. UserSystem/welcome.php 789B

资源介绍:

使用XAMPP集成环境(内含Apache+MySQL+PHP),使用phpstrom开发工具,在学习过程中编写的代码,供需要学习的朋友使用。 sql文件夹中为数据库导出文件,请使用MySQL或者SqlServer还原后使用。程序包含用户注册,用户登录,修改个人资料,找回密码等。
<html> <head> <title>修改用户资料</title> <link rel="stylesheet" href="css/style.css"> <script type="text/javascript"> function chkinput(form) { if(form.user_name.value == "") { form.user_name.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:请输入昵称。"; form.user_name.select(); return false; } if(form.password.value == "") { form.password.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:请输入密码。"; form.password.select(); return false; } if(form.password1.value == "") { form.password1.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:请输入确认密码。"; form.password1.select(); return false; } if(form.password.value.length < 3) { form.password.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:密码长度应该大于3位。"; form.password.select(); return false; } if(form.password.value != form.password1.value) { form.password1.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:密码与重复密码不一致。"; form.password.select(); return false; } if(form.true_name.value == "") { form.true_name.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:请输入真实姓名。"; form.true_name.select(); return false; } if(form.email.value == "") { form.email.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:请填写EMAIL。"; form.email.select(); return false; } if(form.email.value.indexOf('@') < 0) { form.email.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:请输入正确的EMAIL。"; form.email.select(); return false; } if(form.tel.value == "") { form.tel.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:请输入联系电话。"; form.tel.select(); return false; } if(form.answer.value == "") { form.answer.style.backgroundColor = "red"; document.getElementById("error_note").innerText = "提示:请输入密码提示答案。"; form.answer.select(); return false; } document.getElementById("error_note").innerText = "&nbsp;"; return true; } </script> </head> <body> <?php /** * Created by PhpStorm. * User: Administrator * Date: 2019/3/25 * Time: 14:44 */ session_start(); $ID = $_SESSION['id']; require_once ('conn.php'); $sql = mysqli_query($conn,"SELECT * FROM member WHERE id='$ID'"); $info = mysqli_fetch_array($sql); ?> <form name="form1" method="post" action="userupdateok.php" onsubmit="return chkinput(this)"> <div class="register"> <table class="register_tb"> <caption>修改用户信息</caption> <tr> <td class="tb_alignr">用户名:</td> <td class="tb_alignl"><input type="text" name="user_name" id="user_name" readonly="readonly" value="<?php echo $info['username'];?>">*</td> </tr> <tr> <td class="tb_alignr">密&nbsp;&nbsp;码:</td> <td class="tb_alignl"><input type="text" name="password" id="password" value="<?php echo $info['password']?>">*</td> </tr> <tr> <td class="tb_alignr">确认密码:</td> <td class="tb_alignl"><input type="text" name="password1" id="password1" value="<?php echo $info['password']?>" >*</td> </tr> <tr> <td class="tb_alignr">真实姓名:</td> <td class="tb_alignl"><input type="text" name="true_name" id="true_name" value="<?php echo $info['truename']?>"></td> </tr> <tr> <td class="tb_alignr">性别:</td> <td class="tb_alignl"><input type="radio" name="sex" id="sex_m" value="男" <?php if($info['sex'] === "男"){echo "checked = 'checked'";} ?> > <label for="sex_m">男</label>&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="sex" id="sex_w" value="女" <?php if($info['sex'] === "女"){echo "checked = 'checked'";} ?> > <label for="sex_w">女</label> </td> </tr> <tr> <td class="tb_alignr">E-mail:</td> <td class="tb_alignl"><input type="text" name="email" id="email" value="<?php echo $info['email']?>"></td> </tr> <tr> <td class="tb_alignr">电话:</td> <td class="tb_alignl"><input type="text" name="tel" id="tel" value="<?php echo $info['tel']?>"></td> </tr> <tr> <td class="tb_alignr">QQ:</td> <td class="tb_alignl"><input type="text" name="qq" id="qq" value="<?php echo $info['qq']?>"></td> </tr> <tr> <td class="tb_alignr">地址:</td> <td class="tb_alignl"><input type="text" name="address" id="address" value="<?php echo $info['address']?>"></td> </tr> <tr> <td class="tb_alignr">密码提示问题:</td> <td class="tb_alignl"> <select name="question" id="question"> <option value="0">你的小学名字叫什么?</option> <option value="1">你的中学名字叫什么?</option> <option value="2">你的大学名字叫什么?</option> <option value="3">你的母亲名字叫什么?</option> <option value="4">你的父亲名字叫什么?</option> <option value="5">你的配偶名字叫什么?</option> <?php $question = $info['question']; echo "<script>document.getElementById('question').selectedIndex = $question;</script>" ?> </select> </td> </tr> <tr> <td class="tb_alignr">密码提示答案:</td> <td class="tb_alignl"><input type="text" name="answer" id="answer" value="<?php echo $info['answer']?>"></td> </tr> <tr> <td class="tb_alignr"><input type="hidden" name="authority" id="authority" value="<?php echo $info['authority']?>"> <input type="hidden" name="id1" id="id1" value="<?php echo $info['id']?>"></td> <td class="tb_alignl"><input type="submit" name="button1" id="button1" value="确 认"> <input type="reset" name="button2" i
100+评论
captcha
    类型标题大小时间
    ZIPandroid解析xml837.5KB12年前
    ZIPVC实现金山界面153.89KB17年前
    ZIP通讯录管理系统通讯录3.2MB16年前
    ZIPC#基类库大全(最全面的)53.16MB7年前
    ZIPSecureCRT8.7,包含注册机64.7MB2年前
    ZIPstruts2经典实例23.26MB17年前
    ZIPO2S.Components.PDFRender4NET4.5.1.2475.64KB3年前
    ZIP数据库课程设计:高校教务管理系统(Java代码、SQL代码、报告)16.65MB2年前