帮忙看下代码哪里出错拉

来源:百度知道 编辑:UC知道 时间:2024/05/17 02:30:45
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Cookies物件</title>
</head>
<body>
<%
if request.write("txtname")<>empty or request.write("txtmonth")<>empty or request.write("txtday")<>empty
then
response.cookies("s_name")=request.write("txtname")
response.cookies("s_month")=request.write("txtmonth")
response.cookies("s_day")=request.write("txtday")
response.cookies("s_name").expires=date+365
response.cookies("s_month").expires=date+365
response.cookies("s_day").expires=date+365
end if
s_name=request.cookies("s_name")
s_month=request.cookies("s_month")
s_day=request.cookies("s_day")
if s_name="&qu

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Cookies物件</title>
</head>
<body>
<%
if request.Form("txtname")<>empty or request.Form("txtmonth")<>empty or request.Form("txtday")<>empty then
response.cookies("s_name")=request.Form("txtname")
response.cookies("s_month")=request.Form("txtmonth")
response.cookies("s_day")=request.Form("txtday")
response.cookies("s_name").expires=date+365
response.cookies("s_month").expires=date+365
response.cookies("s_day").expires=date+365
end if
s_name=request.cookies("s_name")
s_month=request.cookies("s_month")
s_day=request.cookies("s_day")
if s_name="" or s_mont