点击“submit” 按钮后,提交到本页面,触发实现函数AAA的功能
<
%
dim
act act
=
request.querystring(
"
action
"
)
if
act
=
"
set
"
then
call
AAA()
end
if
sub
AAA() ...
end sub
%
>
<
form method
=
"
post
"
action
=
"
index.asp?action=set
"
>
...
</
form
>
这样当自身检测到有action参数提交过来,再判断这个参数的值是不是你指定的“set”,如果是,就执行函数代码。