关于超想
本站导航
邮件列表
  首页 | 本站产品 | Delphi资料 | 免费资源 | 程序人生 | 软件工程 | 网站设计 | 推荐网站
你所在的位置 -> 主页 -> 超想软件 -> 编程资料 -> asp ->详细
相关内容  
 
 
在Delphi程序中应用IE浏览器控件
DELPHI 中动态链接库的使用
利用Hook技术实现键盘监控
Delphi下汉字输入法的编程及使用
在Delphi中用拼音首字符序列来实现检索功能
在DELPHI中处理时间
Delphi 元件撰写常问问题
任意动态改变/添加网络设置中的 TCP/IP 的 DNS 地址
Delphi 3中Cookie的建立使用
Delphi4.0 开发WEBMAIL程序
用DELPHI制作留言板
 
【新品推荐】

  详细内容
 

如何动态添加form项
作者: 评价: 上站日期: 2001-09-04
内容说明:
来源:



< %@ language = vbscript%> 
< % Response.Expires = 0 %> 
< HTML> 
< HEAD> 
< TITLE> Dynamically Growing Form< /TITLE> 
< /HEAD> 
< BODY> 
< %
If Request("Action") = "Submit the List" Then
' Show what was entered.
Response.Write "< B> Here are the Items submitted:< /B> < BR> "
nItems = Request.Form("Items").Count
For i = 1 To nItems
' Show submitted Items
Response.Write Request.Form("Items")(i) & "< BR> "
Next
Response.Write Request("Item") & "< BR> "
Else
' Create the form from all items. %> 
< FORM Action=dynaform.asp Method=Post> 
< B> Items:< /B> < BR> 
< %
nItems = Request.Form("Items").Count
For i = 1 To nItems
' Show previously submitted Items
Response.Write "< INPUT Type=Text Name=Items Value=""" & _
Trim(Request.Form("Items")(i)) & """> < BR> "
Next

If Request.Form("Item") < >  "" Then
' paint a new input box, and store the old Item in Items collection
Response.Write "< INPUT Type=Text Name=Items Value=""" & _
Trim(Request.Form("Item")) & """> < BR> "

Response.Write "< P> Please enter an Item,< BR> "
Response.Write "and submit them one at a time< BR> "
Response.Write "by pressing the Add Item button.< BR> "
Response.Write "< INPUT Type=Text Size=50 Name=Item Value=""""""> "
Else
' No Item was submitted, don't show an error
Response.Write "< P> Please enter an Item,< BR> "
Response.Write "and submit them one at a time< BR> "
Response.Write "by pressing the Add Item button.< BR> "
Response.Write "< INPUT Type=Text Size=40 Name=Item Value=""""""> < BR> "
End If
%> 
< P> 
< INPUT Type="Submit" Name="Action" Value="Add Item to List"> 
< INPUT Type="Submit" Name="Action" Value="Submit the List"> 
< BR> 
< % End If %> 

< /FORM> 
< /BODY> 
< /HTML> 
 

 
你所在的位置 -> 主页 -> 超想软件 -> 编程资料 -> asp ->详细
  首页 | 本站产品 | Delphi资料 | 免费资源 | 程序人生 | 软件工程 | 网站设计 | 推荐网站
声明:本站内容除注明原创以外均从网上摘抄,如有侵权请指明。
  如果您对我们的网站有什么意见或者建议,请与我们联系
powered by 建站易上手- V2.0