Asp三级联动下拉菜单数据库版(含源程序)(3)_ASP教程
教程Tag:暂无Tag,欢迎添加,赚取U币!
推荐:关于阻止灌水留言的一个方法(随机生成的4位认证码)原理:在每次提交留言的时候,要输入随机生成的4位认证码. 以下代码用在ASP 生成随机4位数: % dim key randomize timer key=Int((8999)*Rnd +1000) % 在表单里显示: 认证码:%=key% input type=text name=rekey size=8 maxlength=4 input value=%=key
</head>
<body>
<form action="untitled1.asp" method="post" name="myform">
<p><br>
<select name="biglocation" onChange="changelocation(document.myform.biglocation.options[document.myform.biglocation.selectedIndex].value)" size="1">
<option selected>请选择市</option>
<%
sql1 = "select * from loaction order by loactionname asc"
set rs1 = conn.Execute (sql1)
do while not rs1.eof
%>
<option value="<%=trim(rs1("loactionid"))%>"><%=trim(rs1("loactionname"))%></option>
<%
rs1.movenext
loop
rs1.close
set rs1 = nothing
conn.Close
set conn = nothing
%>
</select>
</p>
<p>
<select name="smalllocation" onChange="changelocation2(document.myform.smalllocation.options[document.myform.smalllocation.selectedIndex].value)">
<option selected value="">==请选择县==</option>
</select>
</p>
<p>
<select name="dlmc0" size="1">
<option value="-1" selected>==请选择乡镇==</option>
</select>
</p>
<p> <br>
<input type="submit" name="Submit" value="Submit">
<br>
</p>
</form>
</body>
</html>
分享:asp生成HTM静态列表分页(含代码,已测试成功)!--#include file=conn.asp-- htmlheadTITLE分页测试/TITLELINK href=inc/style.css type=text/css rel=stylesheet/head %strHead=strHeadhtml strHead=strHeadhead strHead=strHeadTITLE分页测试/TITLE strHead=strHeadLINK href=inc/style.cs
相关ASP教程:
- 相关链接:
- 教程说明:
ASP教程-Asp三级联动下拉菜单数据库版(含源程序)(3)。