login.php

来自「十大精典PHP项目开发全程案例+代码」· PHP 代码 · 共 55 行

PHP
55
字号
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style.css" rel="stylesheet">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<script language="javascript">
	  function chkinput(form){
	    if(form.name.value==""){
		  alert("请输入用户名!");
		  form.name.select();
		  return(false);
		}
		if(form.pwd.value==""){
		  alert("请输入用户密码!");
		  form.pwd.select();
		  return(false);
		}
		return(true);
	  }
	</script>
<form name="form1" method="post" action="chkadmin.php" onSubmit="return chkinput(this)">
  <table width="547" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
	<tr>
		<td height="94" background="images/default_01.gif">&nbsp;</td>
	</tr>
	<tr>
		<td height="160" align="center" background="images/default_02.gif"><table width="83%" height="93"  border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="39%" height="30" align="right">管理员名称:&nbsp;</td>
            <td width="61%">&nbsp;              <input name="name" type="text" id="name"></td>
          </tr>
          <tr>
            <td height="30" align="right">管理员密码:&nbsp;</td>
            <td>&nbsp;            <input name="pwd" type="text" id="pwd"></td>
          </tr>
          <tr align="center">
            <td height="60" colspan="2"><input name="imageField" type="image" src="images/btn1.gif" width="79" height="37" class="input1">
            &nbsp;&nbsp;&nbsp;
            <input name="imageField2" type="image" src="images/btn2.gif" width="79" height="37" onClick="form.reset();return false;" class="input1">
            </td>
          </tr>
        </table></td>
	</tr>
	<tr>
		<td height="23"  background="images/default_04.gif"></td>
	</tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?