导航:首页 > 文件教程 > 班级网站php

班级网站php

发布时间:2025-05-26 11:52:03

Ⅰ 怎么设计网页,实现身份验证后才能进入网页,PHP语言

login.php
<?
session_save_path("./");
session_start();
$wenti="班主任的名字是?";
$define_daan="设定的答案";
if($login_submit){
if($daan==$define_daan) $str="您的回答错误!";
else{
session_register("ses_daan");
$ses_daan="设定的答案";
header("location:index.php");
}
}
?>
<html>
<head><title>进入验证</title>
</head>
<style>
table{font-size:9pt;}
</style>
<body><br>
<form name="form1" method="post" action=<?echo $PHP_SELF ?> >
<table border="0" cellpadding="3" cellspacing="1" align="center" width="300" bgcolor="#3399CC">
<tr height="25" bgcolor="#E7E7E7"><td colspan="2"><b>XXXXXX--</b>进入验证</td></tr>
<tr height="25" bgcolor="#e7f7f7" ><td align="right">问题:</td><td><?echo $wenti;?></td></tr>
<tr height="25" bgcolor="#e7f7f7" ><td align="right">答案:</td><td><input type="text" name="daan"></td></tr>
<tr height="25" bgcolor="#e7f7f7" ><td></td><td><input type="submit" name="login_submit" value="提交"><?echo "<font color=red>".$str."</font>";?></td></tr>
</table>
</form>

index.php页面里面加上
<?
session_save_path("./");
session_start();
if(!session_is_registered("ses_daan")) header("location:login.php");//这里也可以判断答案是否正确来处理
//下面是你要加的内容
///
///
?>

Ⅱ 学生成绩管理系统php源码

php学生管理系统源码,供大家参考,具体内容如下
功能:
1.添加/删除/修改
2.数据存储.
界面分布:
index.php
---主界面
add.php ---stu添加
action --- sql中add/del/update
(处理html表单--mysql的数据存储 stu修改
menu.php
--首页
1. index.php
!DOCTYPE html
html lang="en"
head
meta charset="UTF-8"
title学生信息管理/title
script
function doDel(id) {
if(confirm('确认删除?')) {
window.location='action.php?action=delid='+id;
}
}
/script
/head
body
center
?php
include ("menu.php");
?
h3浏览学生信息/h3
table width="500" border="1"
tr
thID/th
th姓名/th
th性别/th
th年龄/th
th班级/th
th操作/th
/tr
?php
// 1. 链接数据库
try{
$pdo = new PDO("uri:mysqlPdo.ini","root","1");
}catch (PDOException $e) {
die('connection failed'.$e-getMessage());
}
//2.执行sql
$sql_select = "select * from stu";
//3.data 解析
foreach ( $pdo-query($sql_select) as $row) {
echo "tr";
echo "th{$row['id']} /th";
echo "th{$row['name']}/th";
echo "th{$row['sex']} /th";
echo "th{$row['age']} /th";
echo "th{$row['classid']}

Ⅲ 推荐一个班级的网站文件

功能完备的班级网站:
http://www.alixixi.com/Down/softdown.asp?softid=11118

虫虫班级同学录程序 V1.1
http://codejia.com/asp/code_20071522254_6021.htm

XR Class班级主页系统 v2.4 Build 050812
http://codejia.com/asp/code_200581333716_2030.htm

追梦同学录(单班级版)
http://www.codesky.net/codedown/html/14753.htm

班级同学录整站源码(带论坛)
http://bbs.01w.cn/archiver/?tid-1820.html

阅读全文

与班级网站php相关的资料

热点内容
怎么隐藏文件手机 浏览:479
编程软件哪个需要钱 浏览:875
如何看自己的ie版本 浏览:492
2008r2用户文件夹路径 浏览:755
winzip文件压缩成多个小文件 浏览:562
勒索病毒文件是哪个 浏览:855
群聊机器人代码 浏览:728
用什么充电app最便宜 浏览:531
jspif语句 浏览:896
你删除的照片会在哪个文件夹 浏览:518
编程如何设置 浏览:393
微信jssdk分享qq空间 浏览:840
修改ipadid密码忘记了怎么办 浏览:938
纸质文件拍摄视频 浏览:560
今天的疫情数据怎么样 浏览:491
出国旅行不会英语需要什么app 浏览:351
移动机用联通数据库 浏览:710
启动器配置文件丢失怎么能 浏览:686
如何压缩王者荣耀文件 浏览:351
抖音哪些人在哪里统计数据 浏览:662

友情链接