一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

动态添加form项

时间:2022-06-30 11:18:42 编辑:袖梨 来源:一聚教程网

     <%@ language = vbscript%>
     <% Response.Expires = 0 %>
     >
     
     Dynamically Growing Form
     
     
     <%
     If Request("Action") = "Submit the List" Then
     ' Show what was entered.
     Response.Write "Here are the Items submitted:
"
    nItems = Request.Form("Items").Count
    For i = 1 To nItems
    ' Show submitted Items
    Response.Write Request.Form("Items")(i) & "
"
    Next
    Response.Write Request("Item") & "
"
     Else
     ' Create the form from all items. %>
     

     Items:

     <%
     nItems = Request.Form("Items").Count
     For i = 1 To nItems
    ' Show previously submitted Items
    Response.Write "    Trim(Request.Form("Items")(i)) & """>
"
     Next

     If Request.Form("Item") <> "" Then

热门栏目