【php开源代码栏目提醒】:网学会员鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“code6.4.php”一文,供大家参考学习
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title> cookie有效性控制</title>
</head>
<body>
<center>
<table width="400" border="0">
<tr>
<td>
<fieldset>
<legend>用户登录页面</legend>
<form action="savcookie.php" method="post">
<p>用户名:
<input type="text" name="username"></p>
<p>密 码:
<input type="pass
word" name="pwd"></p>
<p>cookie有效期:
<label>
<select name="savtime">
<option value="1800">半个小时</option>
<option value="3600">一个小时</option>
<option value="86400">一天</option>
<option value="604800">一周</option>
<option value="2592000">一个月</option>
</select>
</label>
</p>
<input type="submit" value="提 交" >
</form>
</fieldset>
</td>
</tr>
</table>
</center>
</body>
</html>