私心教学反思:请问一个ASPCOOKIES显示问题!!!

来源:百度文库 编辑:高考问答 时间:2024/05/08 11:35:44
<form name="form1" method="post" action="5_1_32.asp">
<table width="260" border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="68"><div align="right">用户名:
</div></td>
<td width="196"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td><div align="right">密码:</div></td>
<td><input name="pwd" type="password" id="pwd"></td>
</tr>
<tr>
<td colspan="2">
<div align="right">
<input type="submit" name="Submit" value="提交">
</div></td>
</tr>
<tr>
<input type="hidden" name="date" value="now()" id="id">
</tr>
</table>
</form>
这个文件提交信息!!!

<%
response.Cookies("用户")("姓名")=request.Form("name")
response.Cookies("用户")("密码")=request.Form("pwd")
response.Cookies("用户")("时间")=request.Form("date")

response.Cookies("用户").expires="2006-8-8 22:30:20 "

response.Write(request.Cookies("用户")("姓名")&"登陆了!"&"<br>")
response.Write("密码是:"&request.Cookies("用户")("密码")&"<br>")
response.Write("上次登陆的时间是:"&request.Cookies("用户")("时间")&"<br>")
%>

这个文件设置cookies,然后读,可是为什么 日期 不显示?,只输出now()?
别答了,我知道哪错了....

<%="now()"%>