现在把源文件发给各位大大帮忙看看.看是哪里有问题...谢谢各位大大了!!
<?
include '../sql.php';
if($_POST[cpwd]){
if($_POST[pwd]==$_POST[apwd]){
$f_pwd = md5($_POST[pwd]);
other_sql("UPDATE `zqceo`.`zq_admin` SET `adminpwd` = '$f_pwd' WHERE `zq_admin`.`id` =1");
}else{
echo "<script language=javascript> alert(\"两次输入的密码不一致\"); location.href=\"change_pwd.php\"</script> ";
}
}
?>
<!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>
<link href="admin.css" rel="stylesheet" type="text/css" />
</head><body>
<form id="form1" name="form1" method="post" action="">
<table width="520" border="0" align="center" cellpadding="0" cellspacing="0" class="boxline2">
<tr>
<td width="171" height="25" align="right">新密码:</td>
<td width="349">
<label>
<input type="text" name="pwd" id="pwd" />
</label>
</td>
</tr>
<tr>
<td height="25" align="right">确认新密码:</td>
<td><label>
<input type="text" name="apwd" id="apwd" />
</label></td>
</tr>
<tr>
<td height="25"> </td>
<td><input name="cpwd" type="hidden" id="cpwd" value="1" /></td>
</tr>
<tr>
<td height="25" colspan="2" align="center"><label>
<input type="submit" name="button" id="button" value="提交" />
</label></td>
</tr>
</table></form>
</body>
</html>
<?
include '../sql.php';
if($_POST[cpwd]){
if($_POST[pwd]==$_POST[apwd]){
$f_pwd = md5($_POST[pwd]);
other_sql("UPDATE `zqceo`.`zq_admin` SET `adminpwd` = '$f_pwd' WHERE `zq_admin`.`id` =1");
}else{
echo "<script language=javascript> alert(\"两次输入的密码不一致\"); location.href=\"change_pwd.php\"</script> ";
}
}
?>
<!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>
<link href="admin.css" rel="stylesheet" type="text/css" />
</head><body>
<form id="form1" name="form1" method="post" action="">
<table width="520" border="0" align="center" cellpadding="0" cellspacing="0" class="boxline2">
<tr>
<td width="171" height="25" align="right">新密码:</td>
<td width="349">
<label>
<input type="text" name="pwd" id="pwd" />
</label>
</td>
</tr>
<tr>
<td height="25" align="right">确认新密码:</td>
<td><label>
<input type="text" name="apwd" id="apwd" />
</label></td>
</tr>
<tr>
<td height="25"> </td>
<td><input name="cpwd" type="hidden" id="cpwd" value="1" /></td>
</tr>
<tr>
<td height="25" colspan="2" align="center"><label>
<input type="submit" name="button" id="button" value="提交" />
</label></td>
</tr>
</table></form>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货