HTML页面包含ASP页面

script.html

<form name=form1 action="2.asp" method=post>
<select name=province onchange=alert(province.value)>
<script src="1.asp"></script>
</select>
<input type=submit value=submit>
</form>

1.asp

<%
response.write "document.write(" & """<option value=Ɔ' selected>—请选择地区:--</option>""" & ");"
%>
<%for i=1 to 7%>
<%
select case i
case 1
t="河南"
case 2
t="上海"
case 3
t="信阳"
case 4
t="南阳"
case 5
t="郑州"
case 6
t="普陀"
case else
t="其他"
end select
%>
<%
response.write "document.write(" & """<option value='" & t &"'>&nbsp;&nbsp;&nbsp;&nbsp;"&t&"</option>""" & ");"
%>
<%
next
%>
2.asp

<%=request("province")%>

    A+
发布日期:2010年03月07日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: