网络编程 
首页 > 网络编程 > 浏览文章

php使用cookie实现记住用户名和密码实现代码

(编辑:jimmy 日期: 2025/12/21 浏览:3 次 )
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form id="form1" name="form1" method="post" action="check_remember.php">
<table width="300" border="1" align="center" cellpadding="0" cellspacing="0">
<thead>
 <tr> 
 <td colspan="2" align="center"><b>记住用户名和密码</b></td> 
 </tr>
</thead> 
 <tr align="center">
 <td>用 户 名:</td>
 <td><input type="text" value="<" name="name"></td>
 </tr>
 <tr align="center">
 <td>密码:</td>
 <td><input type="password" name="password" value="<"></td>
 </tr>
 <tr align="center">
 <td>记住用户名和密码</td>
 <td><"checkbox" name="remember" value="1" checked><"")"checkbox" name="remember" value="1"><"center">
 <td colspan="2"><input type="submit" name="Submit" value="提交" /></td>
 </tr>
</table>
</form>
 
check_remember.php
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<"<a href=\"remember.php\">返回</a>";
?>

上一篇:PHP+jQuery+Ajax实现用户登录与退出
下一篇:php使用cookie实现记住登录状态
一句话新闻
Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。