首页 > 开发 > PHP > 正文

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

2024-05-04 22:31:42
字体:
来源:转载
供稿:网友

就弄了三个页面:

(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="image/school_1.jpg" height="50%" width="60%">    <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="image/school2.jpg" height="15%" width="15%">    <img src="image/lake.jpg" height="15%" width="15%">    <img src="image/flower.jpg" height="15%" width="15%">    <img src="image/autumn.jpg"height="16%" width="16%">    <img src="image/bridge.jpg" height="15%" width="15%">    <img src="image/beauty.jpeg" height="15%" width="15%">      <img src="image/party1.jpeg" height="18%" width="17%">    <img src="image/party2.jpeg" height="18%" width="18%">    <img src="image/party3.jpeg" height="18%" width="17%">    <img src="image/party4.jpeg" height="18%" width="17%">    </center></marquee>  </body></html>            
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表