没有合适的资源?快使用搜索试试~ 我知道了~
PHP编写学校网站上新生注册登陆程序的实例分享
1 下载量 112 浏览量
2020-10-22
16:21:24
上传
评论
收藏 57KB PDF 举报
温馨提示
试读
3页
主要介绍了使用PHP编写学校网站上新生注册登陆程序的实例分享,只包括简单的数据库信息录入和查询等步骤的一些关键点,需要的朋友可以参考下
资源详情
资源评论
资源推荐
PHP编写学校网站上新生注册登陆程序的实例分享编写学校网站上新生注册登陆程序的实例分享
主要介绍了使用PHP编写学校网站上新生注册登陆程序的实例分享,只包括简单的数据库信息录入和查询等步骤的一些关键点,需要的朋友可以
参考下
就弄了三个页面:
(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">河南理工大学真诚欢迎2012级新同学到校学习</marquee>
</center>
<p><center><font color="red" size="6"><blink>新生注册系统</blink></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>
(2)、信息查询登录模块(mysql_stu.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/bg1.jpg">
<?php
//连接数据库;
$link = mysql_connect('localhost','root','Dongsheng');
if(!$link)
{
echo "与数据库连接失败!";
die('Could not connect: ' .mysql_error());
}
$createdb="create database if not exists mis_stu";
$result=mysql_query($createdb)
or die("<br>数据库创建失败:".mysql_error());
$result=mysql_select_db(mis_stu)
weixin_38651450
- 粉丝: 1
- 资源: 921
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0