ASP表单小问题

来源:百度知道 编辑:UC知道 时间:2024/09/21 07:05:19
<%
call request.querystring("w1")

sub ae
response.write("我一来")
end sub
ae '这个起作用了
%>
<form name="f3" method="get" action="">
<input type="submit" name="w1" value="ae">
</form>
我想问这提交按钮的的提交内容怎么不能调用SUB,因为输出request.querystring("w1")的结果也是AE.

<%
if request.querystring("w1")="ae" then
call ae()
end if

sub ae()
response.write("我一来")
end sub
%>
<form name="f3" method="get" action="">
<input type="submit" name="w1" value="ae">
</form>

呵呵,这种问题,还是寻根吧。

个人建议,楼主 学习一下asp和html的解析方式、生命期及所处的物理位置。