广告合同协议书简易:解释一下代码

来源:百度文库 编辑:中科新闻网 时间:2024/04/28 19:48:36
if request("action") = 1 then
if not rs.eof then
rs("fadmin") = trim(request("name"))
if trim(request("oldpass")) <>"" then
rs("fpass") = md5(trim(request("oldpass")),16)
end if
rs("ftitle") = trim(request("ebooktitle"))
rs("faff") = trim(request("aff"))
rs("fmax") = cint(trim(request("max")))
rs("fpagesize") = cint(trim(request("pagesize")))

rs.update
if err.number=0 then
rs.close
set rs = nothing
conn.close
set conn = nothing
session("imsg") = "7"
response.redirect ("msg.asp")
response.end
else
session("imsg") = "8"
response.redirect ("msg.asp")'直接就跳转到了指定页面
response.end
end if
else
session("imsg") = "9"
response.redirect ("msg.asp")
response.end
end if
end if
%>

看不太明白能注释一下吗? 其中"request("action") = 1 "是什么呀?
是下边的这个表单里的吗?我是初学者,不懂
<form method="post" name="myform" action="reply.asp?action=reply" onsubmit="return chk();">
还有为什么reply.asp?action=reply 中要用 ? 呢

取上一页带来的action的值判断是1就执行下面的代码!

获取action这个链接参数的值,并判断是否等于1