예제 #1
0
파일: login.php 프로젝트: yuxujian/YuNote
<?php

require_once '../../controller/common.php';
?>

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<link href="/empManage/css/common.css" type="text/css" rel="stylesheet"/>
<link href="/empManage/css/login_css.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<form action="/empManage/controller/loginProcess.php" method="post">
<table>
<tr><td>用户名</td><td><input type="text" name="id" value="<?php 
echo get_name_by_cookie('id');
?>
"/></td></tr>
<tr><td>密码</td><td><input type="password" name="pwd"/></td></tr>
<tr><td colspan="2">是否保存用户ID<input type="checkbox" name="save_user" value="keep"/></td></tr>
<tr><td><input type="submit" value="提交"/></td><td><input type="reset" value="重置"/></td></tr>
</table>

</form>
</body>

<?php 
if (!empty($_GET['error'])) {
    $err = $_GET['error'];
    if ($err == 1) {
        echo "<font class='font1'>用户名或密码错误</font>";
예제 #2
0
파일: test1.php 프로젝트: yuxujian/YuNote
<?php

require_once 'controller/common.php';
$res = get_name_by_cookie();
echo $res;