【php开源代码栏目提醒】:本文主要为网学会员提供checkadmin.php,希望对需要checkadmin.php网友有所帮助,学习一下!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>在线考试</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<style type="text/css">
<!--
.STYLE1 {font-size: 12px}
body {
background-color: #398BB0;
}
-->
</style>
</head>
<body background="#D9D8D8">
<table width="200" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<script language="javascript">
function chkinput(form){
if(form.username.value==""){
alert("请输入管理员!");
form.username.focus();
return(false);
}
if(form.userpwd.value==""){
alert("请输入管理员密码!");
form.userpwd.focus();
return(false);
}
return(true);
}
</script>
<table width="521" height="378" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="498" height="258" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/bg_33.jpg">
<form name="form1" method="post" action="checkadmin_ok.php" onSubmit="return chkinput(this)">
<tr>
<td height="200" colspan="4"> </td>
</tr>
<tr>
<td width="169" height="33" align="right"><span class="STYLE1">管理员:</span>
<input name="username" type="text" id="username" size="10"></td>
<td width="129" align="center"><span class="STYLE1">密码:</span>
<input name="userpwd" type="password" id="userpwd" size="10"></td>
<td width="94" align="center"><input type="image" name="imageField" src="../images/bg_34.jpg"></td>
<td width="106" align="left"><input type="image" name="imageField2" src="../images/bg_35.jpg" onClick="form.reset();return false;"></td>
</tr>
<tr>
<td height="25" colspan="4"> </td>
</tr>
</form>
</table></td>
</tr>
</table>
</body>
</html>
上一篇:
checkadd.php
下一篇:
超市进销存管理系统的开发