📄 findsecret.php
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
color: #6666CC;
font-size: small;
}
a:link{cursor: hand; font-size: 11pt ; color: #3C3C3C; }
a:active{ cursor: hand; font-size: 11pt ;color: 333399; }
a:hover{ cursor: hand; font-size: 11pt ; color:#3300FF; background:#666699;}
a:visited{ cursor: hand; font-size: 11pt ;color: #000000; text-decoration:none }
-->
</style>
</head>
<body>
<? include("head.inc");?>
<?
if(!$_POST[username]||!$_POST[name])
{
?>
<form action="findsecret.php" method="post">
<table width="200" border="1" align="center" cellpadding="2" cellspacing="0" bgcolor="#A7A7A7">
<tr>
<th scope="row"><div align="left">用户名:
<input type="text" name="username" size="10" />
</div></th>
</tr>
<tr>
<th scope="row"><div align="left">姓名:
<input type="text" name="name" size="10" />
</div></th>
</tr>
<tr>
<th scope="row"><input type="submit" name="submit" value="找回密码"/>
</tr>
</table>
</form>
<?
}
else
{
include("db_start.inc");
$username=$_POST[username];
$name=$_POST[name];
$sql="SELECT * FROM web_user WHERE user_id='$username' and name='$name'";//sql语句
$result = mysql_query($sql);
$row=mysql_fetch_row($result);
if($row)
{
?>
<table width="200" border="1" align="center" cellpadding="2" cellspacing="0"bgcolor="#A7A7A7">
<tr>
<th colspan="2" scope="row">你的资料如下</th>
</tr>
<tr>
<th scope="row" width="70">用户名</th>
<td><? echo $row[1];?></td>
</tr>
<tr>
<th scope="row">密码</th>
<td><? echo $row[3];?></td>
</tr>
</table>
<p align="center">
<?
}
else{
?>
<p align="center"><span class="STYLE1" a> 没找到哦!;</span></p>
<?
}
}
?>
</p>
<p align="center"><a href="index.php">返回</a></p>
<? include("copyright.inc");?>
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -