国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

PHP+DBM的同學(xué)錄程序(2)

瀏覽:2日期:2024-01-04 08:46:26
3、刪除成員del.php3 <? require("common.php3"); $id=chop($id); if(!isset($id))error("請(qǐng)輸入要?jiǎng)h除的用戶ID !"); elseif($pwd<>$adminpass)error("管理員密碼錯(cuò)誤!"); else{ ;;$data=dbmopen("class","w"); ;;dbmdelete($data,$id); ;;dbmclose($data); ;;$data=dbmopen("password","w"); ;;dbmdelete($data,$id); ;;dbmclose($data); ;;header("location:index.php3"); } ?> 4、公用文件common.php3 <? $adminpass="test"function error($msg){ ?> <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="style.css"><title>同學(xué)錄 出錯(cuò)</title></head><body bgcolor="#ffffff"> <html><head></head><body bgcolor="#FFFFFF"><center><table border="0" width="80%" height="80%" cellspacing="0" cellpadding="0"> <tr><td width="100%"><table border="0" width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0"> <tr><td width="100%"><table border="0" cellspacing="1" width="100%" align=left height="320"> <tr><td width="100%" bgcolor="#FFB500" align=center height="31"><font color="#804000"><span style="font-size: 11pt">同學(xué)錄 出錯(cuò)</span></font></td> </tr><tr><td width="100%" align=left height="247" bgcolor="#F7F7F7"><span style="font-size: 11pt"><p align="center"> 出錯(cuò)原因:<font color="#FF0000"><? echo $msg;?></font></p><p align="center"><a href="javascript:history.go(-1);"><font color="#000000">請(qǐng)點(diǎn)這里返回上一頁(yè)檢查你的輸入是否有誤</font></a></p> <p align="center">[ <a href="javascript:history.go(-1);">返回上一頁(yè)</a> ]</p></span></td></tr><tr><td width="100%" bgcolor="#FFB500" height="30"><p align="right"><span;;;style="font-size: 9pt"><font color="#804000">Copyright 200x y10k </font><font face="Arial" color="#804000">.Allrights reserved.</font></span></td> </tr></table></td></tr></table></td></tr></table></center></body></html> <? } ?> 5、登陸文件login.php3 <? require("common.php3"); if($submit){ $id=chop($id); ;;if($id=="")error("請(qǐng)輸入您的用戶名稱!"); ;;else{ ;;;;$dbm=dbmopen("password","r"); ;;;;if(!dbmexists($dbm,$id))error("沒(méi)有這個(gè)用戶名稱!"); ;;;;else{ ;;;;;;$pass=dbmfetch($dbm,$id); ;;;;;;if($pass==$password){ setcookie("login",$id,time()+31536000); header("location:index.php3"); ;;;;;;}else error("您的密碼不對(duì)!如果忘記密碼,請(qǐng)使用忘記密碼功能!"); ;;;;} ;;;;dbmclose($dbm); ;;} }else{ ?> <html> <head> <title>深圳中學(xué)2000屆高中(12)班同學(xué)錄:::版權(quán)所有:辛湜@深圳中學(xué)2000屆高中(12)班</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css">;;<!-- body;;;;{background: buttonface; border: 0;} #titleBar;;;;{text-align: left; ;;;;width: 300; ;;;;height: 20px; ;;;;border: 0px solid navy; background: navy; color: white; font-family: verdana; font-size: 12px; ;;;;font-weight: bold; ;;;;padding: 3; ;;;;padding-left: 15; ;;;;z-index: 2;} #box;;;;{width: 300; border: 15px solid navy; border-top: 0; background: white; color: black; font-family: verdana; font-size: 12px; padding: 5; z-index: 1;} table;;;;{width: 240; margin: 10px; margin-top: 20px;} td{color: black; font-family: verdana; font-size: 12px;} .textInput;;;;{background: white; color: black; ;;;;width: 160px; ;;;;border-top: 1px solid gray; ;;;;border-left: 1px solid gray; ;;;;border-right: 1px solid #eeeeee; ;;;;border-bottom: 1px solid #eeeeee; ;;;;} .button{font-family: verdana; font-size: 12px; background: navy; color: white; border-width: 1px;} .pos;;;;{width: 100%; height: 100%; text-align: center;} --> </style> </head> <body bgcolor="#FFFFFF" scroll="no"> <table class="pos"> ;;<tr> ;;;;<td>;;;;;;;;<div id="titleBar">深圳中學(xué)2000屆高中(12)班同學(xué)錄</div> ;;;;;;<div id="box">;;<form action="login.php3"> ;;<table width="348"> ;;;;<tr>;;;;;;;;<td colspan="2"><label for="userInp" accesskey="u"><u>U</u>sername:</label>;;<input type="text" name="id" class="textInput" id="userInp"> ;;;;;;</td> ;;;;</tr> ;;;;<tr>;;;;;;;;<td colspan="2"><label for="pwdInp" accesskey="p"><u>P</u>assword:</label>;;<input type="password" name="password" class="textInput" id="pwdInp"> ;;;;;;</td> ;;;;</tr> ;;;;<tr>;;;;;;;;<td style="text-align: right"> <div align="left">&gt;&gt;<a href="forgetpwd.php3">忘記密碼點(diǎn)擊這里</a>&lt;&lt;</div> ;;;;;;</td> ;;;;;;<td style="text-align: right">;;<input type="submit" value="登陸" class="button" name="submit"> &nbsp;&nbsp;;;<input type="button" value="注冊(cè)" class="button" onClick="window.open('reg.php3')" name="button2"> ;;;;;;</td> ;;;;</tr> ;;</table> </form> ;;;;;;</div> ;;;;</td> ;;</tr> </table> </body> </html> <? } ?>;
標(biāo)簽: PHP
主站蜘蛛池模板: 国产系列在线播放 | 五月久久亚洲七七综合中文网 | 91最新网站 | 亚洲精品久久久久综合中文字幕 | 亚洲视频在线一区 | 亚洲精品免费网站 | 欧美黄色特级视频 | 欧美一级人与动毛片免费播放 | 视频一区中文字幕 | 在线免费观看成年人视频 | 美女黄频免费观看 | 97视频在线观看免费播放 | 中文字幕在线播放 | 久久99精品久久久久久h | 久久免费视频播放 | 一级一片免费播放 | 九九在线免费视频 | 亚洲成人中文 | 久草视频福利在线观看 | 亚洲 中文 欧美 日韩 在线人 | 免费一级毛片正在播放 | 欧美成人观看免费完全 | 亚洲欧美在线不卡 | 亚洲最大激情中文字幕 | 亚洲精品第一第二区 | 国产日韩在线看 | 国产成人免费全部网站 | 国产真实生活伦对白 | 国产欧美精品一区二区 | 欧洲成人r片在线观看 | 亚洲第一成人天堂第一 | 男女国产| 99在线视频免费 | 精品视频在线视频 | 男人天堂男人天堂 | 在线看黄网址 | 韩国一区在线 | 国产系列在线观看 | 久久亚洲精品中文字幕亚瑟 | 亚洲二区在线播放 | 久久99精品久久久久久三级 |