Home >Backend Development >PHP Tutorial >PHP编写学校网站上新生注册登陆程序的实例分享_PHP

PHP编写学校网站上新生注册登陆程序的实例分享_PHP

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-27 10:34:441573browse

就弄了三个页面:

(1)、新生信息注册模块(register.php):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <title>班级注册表</title>
  </head>
  <body background="image/bg3.jpg">
    <center><img  src="/static/imghwm/default1.png"  data-src="image/school_1.jpg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    <marquee behavior="alternate" bgcolor="#FF0000"><b>河南理工大学真诚欢迎2012级新同学到校学习</b></marquee>
    </center>
    <p><center><font color="red" size="6"><b><blink>新生注册系统</blink></b></font></center></p>
    <form action="mysql_stu.php" method="post" name="reg_stu">
    <table align="center" cellspacing="0" bordercolor="#FFFFFF" width="60%" bordercolorlight="#FFFFFF" border="1" cellpadding="3">
      <tr bgcolor="#CCCCCC">
        <td width="100%" align="center" valign="bottom" height="19" colspan="2">
        <font face="隶书" size="4" color="#000000">请仔细填写以下内容</font></td>
      </tr>
      <tr>
        <td width="30%" align="right" height="19" >姓名:</td>
        <td width="70%"><input type="text" name="reg_name" size="10" maxlength="18" ></td>
      </tr>
      <tr>
        <td width="30%" align="right" height="19">性别:</td>
        <td width="70%"><input type="radio" name="reg_sex" value="男" checked >男<input type="radio" name="sex" value="女">女</td>
      </tr>
      <tr>
        <td width="30%" align="right" height="19">年龄:</td>
        <td width="70%"><input type="text" name="reg_age" size="5" maxlength="15"></td>
      </tr>
      <tr>
        <td width="30%" align="right" height="19">班级:</td>
        <td width="70%"><input type="text" name="reg_class" size="20"></td>
      </tr>
      <tr>
        <td width="30%" align="right" height="19">身份证号:</td>
        <td width="70%"><input type="text" name="reg_id" size="20"></td>
      </tr>
      <tr>
        <td width="30%" align="right" height="19">联系电话:</td>
        <td width="70%"><input type="text" name="reg_tele" size="20"></td>
      </tr>
      <tr>
        <td width="30%" align="right" height="19">电子邮件:</td>
        <td width="70%"><input type="text" name="reg_email" size="20"></td>
      </tr>
      <tr>
        <td width="100%" align="center" colspan="2"><input type="submit" value="马上注册">
        <input type="reset" value="全部重写"></td>
      </tr>
    </table>
    </form>
    <marquee behavior="scroll">
    <center><img  src="/static/imghwm/default1.png"  data-src="image/school2.jpg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    <img  src="/static/imghwm/default1.png"  data-src="image/lake.jpg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    <img  src="/static/imghwm/default1.png"  data-src="image/flower.jpg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    <img  src="/static/imghwm/default1.png"  data-src="image/autumn.jpg"  class="lazy"   style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    <img  src="/static/imghwm/default1.png"  data-src="image/bridge.jpg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    <img  src="/static/imghwm/default1.png"  data-src="image/beauty.jpeg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >  
    <img  src="/static/imghwm/default1.png"  data-src="image/party1.jpeg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    <img  src="/static/imghwm/default1.png"  data-src="image/party2.jpeg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    <img  src="/static/imghwm/default1.png"  data-src="image/party3.jpeg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    <img  src="/static/imghwm/default1.png"  data-src="image/party4.jpeg"  class="lazy"    style="max-width:90%"  style="max-width:90%" alt="PHP编写学校网站上新生注册登陆程序的实例分享_PHP" >
    </center></marquee>
  </body>
</html>

2016321152141216.jpg (1281×703)

(2)、信息查询登录模块(mysql_stu.php):



<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn