login.php
来自「图书管理系统的代码,是一个不错的东东哦 用户名为ADMIN为管理员」· PHP 代码 · 共 43 行
PHP
43 行
<script language="javascript">
function checklogin()
{
if ((login.username.value!="") && (login.password.value!=""))
// 如果昵称和密码均不为空,则返回true
return true
else {
// 如果昵称或密码为空,则显示警告信息
alert("昵称或密码不能为空!")
return false
}
}
</script>
<h1></h1>
<form action="<?php echo url('Default','Login'); ?>" method="post" name="login" onsubmit="return checklogin()">
<p align="center">用户登录</p>
<table align="center" border="0">
<tr>
<th>
用户名或ID:
</th>
<th>
<input type="text" name="username">
</th>
</tr>
<tr>
<th>
密 码:
</th>
<th>
<input type="password" name="password">
</th>
</tr>
<tr><td colspan=2><a href="<?php echo url('Default','Reg'); ?>">注册新用户</a></td></tr>
<tr>
<th colspan="2" align="right">
<input type="submit" value="登录">
</form>
</th>
</tr>
</table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?