如何检测一条信息是否是某个账号添加的?ASP程序问题

来源:百度知道 编辑:UC知道 时间:2024/06/06 01:47:03
你好朋友~帮忙解决下这个问题~谢谢
当用户编辑这条信息时~让程序自动判断是否是属于该用户名管理的, 也就是字段中是否有该用户的编号
程序检测c199userid字段中是否含有("userid")
登陆帐号时userid值已经纪录
如果有,就允许编辑~如果没有~就谈出对话框~关闭网页

<%if request.Cookies("shopxp")("username")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
response.End
end if
dim c199userid
c199userid=request.Cookies("shopxp")("userid")
if not isnumeric(c199userid) then
response.write"<script>alert(""该会员不属于你管理!"");location.href=""index.asp"";</script>"
response.end
end If
%>

哥哥,你的问题太简略了吧,我根本不知道你的代码要干什么。

c199userid=request.Cookies("shopxp")("userid") '这里你获取了cookie中的userid
if not isnumeric(c199userid) then '这里你判断了userid是否为数字
response.write"<script>alert(""该会员不属于你管理!"");location.href=""index.asp"";</script>"
response.end
end If

然后呢?其他的判断在哪里?