表单实现登录界面
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Login</title>
</head>
<body>
<form action="Logined.php" method="post">
<h3>登录管理后台</h3>
用户:<input type="text" name="userName"><br/><br/>
密码:<input type="password" name="userPd"><br/><br/>
<input type="checkbox" name="" checked>记住用户名
<input type="checkbox" name="">自动登录<br/><br/>
<input type="submit" name="登录">
</form>
</body>
</html>
<?php
header('content-type:text/html;charset=utf-8');
echo '用户名:'.$_POST['userName'].'<br>';
echo '密码为:'.$_POST['userPd'];
丑陋的登录界面
丑陋的登陆后界面