<%Response.Buffer=True%>
<%
Dim txtName,rdoSex,rdoCT,VarNum
VarNum=Request.Cookies("intVisit")
txtName=Request.Cookies("txtName")
rdoSex=Request.Cookies("rdoSex")
rdoCT=Request.Cookies("rdoCT")
IF VarNum<>"" AND txtName<>"" AND rdoSex<>"" AND rdoCT<>"" Then
VarNum=cInt(VarNum)+1
Response.Cookies("intVisit")=VarNum
Response.Cookies("txtName")=txtName
Response.Cookies("rdoSex")=rdoSex
Response.Cookies("intVisit").Expires=DateAdd("d",cInt(rdoCT),date())
Response.Cookies("rdoCT").Expires=DateAdd("d",cInt(rdoCT),date())
Response.Cookies("txtName").Expires=DateAdd("d",cInt(rdoCT),date())
Response.Cookies("rdoSex").Expires=DateAdd("d",cInt(rdoCT),date())
Select Case rdoSex
Case "male"
Response.Write txtName & "先生您好,你是第" & VarNum & "次光临本站"
Case "female"
Response.Write txtName & "小姐您好,你是第" & VarNum & "次光临本站"
End Select
Else
Response.Redirect "cookies.asp"
End If
%>
<%
Dim txtName,rdoSex,rdoCT,VarNum
VarNum=Request.Cookies("intVisit")
txtName=Request.Cookies("txtName")
rdoSex=Request.Cookies("rdoSex")
rdoCT=Request.Cookies("rdoCT")
IF VarNum<>"" AND txtName<>"" AND rdoSex<>"" AND rdoCT<>"" Then
VarNum=cInt(VarNum)+1
Response.Cookies("intVisit")=VarNum
Response.Cookies("txtName")=txtName
Response.Cookies("rdoSex")=rdoSex
Response.Cookies("intVisit").Expires=DateAdd("d",cInt(rdoCT),date())
Response.Cookies("rdoCT").Expires=DateAdd("d",cInt(rdoCT),date())
Response.Cookies("txtName").Expires=DateAdd("d",cInt(rdoCT),date())
Response.Cookies("rdoSex").Expires=DateAdd("d",cInt(rdoCT),date())
Select Case rdoSex
Case "male"
Response.Write txtName & "先生您好,你是第" & VarNum & "次光临本站"
Case "female"
Response.Write txtName & "小姐您好,你是第" & VarNum & "次光临本站"
End Select
Else
Response.Redirect "cookies.asp"
End If
%>
俺不高手,俺也是来学习的。
俺的意见不一定就对,当你不认同时请点忽视按钮。
当走到十字路口不知该如何走时,可在论坛问下路,但你若希望别人能一路把你送到目的地,显然是不现实的,因为别人也有自己要走的路。