asp 取文本框名稱代碼
更新時間:2008年12月02日 23:06:55 作者:
可以批量獲取文本框名稱的代碼
<%
For each obj in Request.Form
response.write "<font color=red>"&obj&"</font><br>"
obj=Request.Form(obj)
response.write obj&"<br>"
Next
%>
<form name=form action="1.asp" method="post">
<input type=text name="ad"><br><br>
<input type=text name="sdf"><br><br>
<input type=text name="r4g"><br><br>
<input type=text name="hrre"><br><br>
<input type=submit value="update">
</form>
For each obj in Request.Form
response.write "<font color=red>"&obj&"</font><br>"
obj=Request.Form(obj)
response.write obj&"<br>"
Next
%>
<form name=form action="1.asp" method="post">
<input type=text name="ad"><br><br>
<input type=text name="sdf"><br><br>
<input type=text name="r4g"><br><br>
<input type=text name="hrre"><br><br>
<input type=submit value="update">
</form>
相關文章
JavaScript判斷是否為數(shù)字的幾種方式匯總(推薦!)
有時候需要根據(jù)輸入的內容來進行計算,這個時候就需要判斷輸入的內容是否是數(shù)字,下面這篇文章主要給大家介紹了關于JavaScript判斷是否為數(shù)字的幾種方式,文中通過實例代碼介紹的非常詳細,需要的朋友可以參考下2022-06-06js onmousewheel事件多次觸發(fā)問題解決方法
做一個首屏和第二屏之間滾動鼠標滾輪就可以整平切換的效果,遇到了很多問題,下面是問題解決方法2014-10-10JS日期格式化之javascript Date format
這篇文章主要介紹了JS日期格式化之javascript Date format的相關資料,需要的朋友可以參考下2015-10-10JS實現(xiàn)網(wǎng)頁背景顏色與select框中顏色同時變化的方法
這篇文章主要介紹了JS實現(xiàn)網(wǎng)頁背景顏色與select框中顏色同時變化的方法,實例分析了javascript操作select及css樣式的技巧,具有一定參考借鑒價值,需要的朋友可以參考下2015-02-02