时间:2021-07-01 10:21:17 帮助过:18人阅读
check_remember.php <?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 "返回"; ?>
http://www.bkjia.com/PHPjc/990542.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/990542.htmlTechArticlephp使用cookie实现记住用户名和密码实现代码,phpcookie meta http-equiv="Content-Type" content="text/html; charset=utf-8" /form id="form1" name="form1" method="post"...