Asp三級(jí)聯(lián)動(dòng)下拉菜單數(shù)據(jù)庫(kù)版(含源程序)(3)_ASP教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
推薦:關(guān)于阻止灌水留言的一個(gè)方法(隨機(jī)生成的4位認(rèn)證碼)原理:在每次提交留言的時(shí)候,要輸入隨機(jī)生成的4位認(rèn)證碼. 以下代碼用在ASP 生成隨機(jī)4位數(shù): % dim key randomize timer key=Int((8999)*Rnd +1000) % 在表單里顯示: 認(rèn)證碼:%=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>請(qǐng)選擇市</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="">==請(qǐng)選擇縣==</option>
</select>
</p>
<p>
<select name="dlmc0" size="1">
<option value="-1" selected>==請(qǐng)選擇鄉(xiāng)鎮(zhèn)==</option>
</select>
</p>
<p> <br>
<input type="submit" name="Submit" value="Submit">
<br>
</p>
</form>
</body>
</html>
分享:asp生成HTM靜態(tài)列表分頁(yè)(含代碼,已測(cè)試成功)!--#include file=conn.asp-- htmlheadTITLE分頁(yè)測(cè)試/TITLELINK href=inc/style.css type=text/css rel=stylesheet/head %strHead=strHeadhtml strHead=strHeadhead strHead=strHeadTITLE分頁(yè)測(cè)試/TITLE strHead=strHeadLINK href=inc/style.cs
相關(guān)ASP教程:
- asp FSO 讀寫(xiě)文件本文件實(shí)現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶(hù)真實(shí)IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫(kù)實(shí)現(xiàn)代碼
- asp中正則表達(dá)式過(guò)濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁(yè)模板:ASP內(nèi)建對(duì)象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個(gè)小技巧
- eWebEditor v3.8 列目錄
- ASP無(wú)組件分頁(yè)實(shí)現(xiàn)思路及代碼
- 相關(guān)鏈接:
復(fù)制本頁(yè)鏈接| 搜索Asp三級(jí)聯(lián)動(dòng)下拉菜單數(shù)據(jù)庫(kù)版(含源程序)(3)
- 教程說(shuō)明:
ASP教程-Asp三級(jí)聯(lián)動(dòng)下拉菜單數(shù)據(jù)庫(kù)版(含源程序)(3)
。