ASP用户登陆代码,大家请帮我看看

来源:百度知道 编辑:UC知道 时间:2024/05/30 11:26:58
<!--#include file="userfunc.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=222 border=0>
<TR>
<TD width=9><IMG height=9 src="images/vipasp_cornerl.gif" width=9></TD>
<TD width=204 background=images/vipasp_top.gif></TD>
<TD width=10><IMG height=9
src="images/vipasp_cornerr.gif" width=9></TD></TR>
<TR>
<TD width=9 background=images/vipasp_l.gif></TD>
<TD vAlign=top width=204>
<% if request.cookies("timesshop")("username")="" then
Dim url %>
<table width=100% border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
<form name=loginfo method=post action=chkuser.asp>
<tr bgcolor=#ffffff>
<td width=

timesshop是自己定义的~避免和别的同名cookie重复吧,怕别的地方也用到cookies("username")
最后定义url是为了登陆成功之后指向到某个网址
不过里面并没有给url赋值,可能是预留吧。一般来说是要写个
url=request("url")吧。

timesshop??是自己定义的一个cookie,应该是记录上次登陆或者购买的时间吧

dim url这个应该是为了后面用url做声明,不过到表单提交的时候他也没有对url作出处理,的确令人费解,可能是当初打算用他做点什么,可是一直没有用吧

timeshop 应该是定义的COOKIES有效时限