记住用户名和密码
用 户 名:密码:记住用户名和密码<?php if($_COOKIE['remember'] == 1){?><?php }else{($_COOKIE['remember'] == "")?><?php }?>check_remember.php
$name = $_POST['name'];
$password = $_POST['password'];
$remember = $_POST['remember'];
if($remember == 1){
setcookie('name',$name,time()+3600);
setcookie('password',$password,time()+3600);
setcookie('remember',$remember,time()+3600);
}else{
setcookie('name',$name,time()-3600);
setcookie('password',$password,time()-3600);
setcookie('remember',$remember,time()-3600);
}
echo "返回";
?>