ASP+Script

<form action="2.asp" method=post>
<select ><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+
发布日期:2007年03月15日  所属分类:未分类

发表评论

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