阴山大草原怪物:ASP中,能否这样赋值?
来源:百度文库 编辑:神马品牌网 时间:2024/10/06 16:10:23
这样赋值是否有问题?
这是用户管理系统中的一个代码
<%if request.cookies("god")("name")="" then
response.write "<script language=javascript>alert('对不起,您还没有登陆或登陆超时!');history.go(-1);</script>"
response.End
else
name=request.cookies("god")("name")
end if% >
< !--#include file="conn.asp"-->
下直接调用与使用等于用户名,可以么
< %=rs("name")%>
这是用户管理系统中的一个代码
<%if request.cookies("god")("name")="" then
response.write "<script language=javascript>alert('对不起,您还没有登陆或登陆超时!');history.go(-1);</script>"
response.End
else
name=request.cookies("god")("name")
end if% >
< !--#include file="conn.asp"-->
下直接调用与使用等于用户名,可以么
< %=rs("name")%>
可以。。
<%=name%>