📄 edit.php
字号:
<?
include "../check.php"
?>
<?
include "../sql.php"
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="JavaScript">
function Juge(theForm)
{
if (theForm.textfield.value =="")
{
alert("请填上新登陆帐号名称!");
theForm.textfield.focus();
return (false);
}
if (theForm.textfield2.value =="")
{
alert("请填上新登陆密码!");
theForm.textfield2.focus();
return (false);
}
}
</script>
</head>
<body>
<div align="center">
<p>修改管理员帐号密码</p>
<form name="form1" method="post" action="editb.php" onsubmit="javascript:return Juge(this);">
<table border="1">
<tr>
<td><div align="center">管理员姓名</div></td>
<td><div align="center">新登陆帐号</div></td>
<td><div align="center">新登陆密码</div></td>
</tr>
<tr>
<td><div align="center">
<select name="select">
<?
$sql ="select * from admin ";
$reslust=mysql_query($sql);
echo mysql_error();
while ($row=mysql_fetch_row($reslust))
{//echo $row[2]."<br>";
echo "<option value=".$row[2].">".$row[2]."</option>";
}
?>
</select>
</div></td>
<td><div align="center">
<input name="textfield" type="text" size="12">
</div></td>
<td><div align="center">
<input name="textfield2" type="text" size="12">
</div></td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</p>
</form>
<p> </p>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -