代码:
<!DOCTYPE html><html>
<body>
<form action="demo_form2.asp" method="post">
First name:
<input type="text" name="name" value="Donald" />
<br>
Last name:
<input type="text" name="name" value="Duck" />
<br>
<input type="submit" value="Submit" />
</form>
<hr>
<p>The information received from the form above was:</p>
<%
If Request.Form("name")<>"" Then
Response.Write("<p>")
Response.Write("name=" & Request.Form("name"))
Response.Write("</p><p>")
Response.Write("The name property's count is: ")
Response.Write(Request.Form("name").Count)
Response.Write("</p><p>")
Response.Write("First name=" & Request.Form("name")(1))
Response.Write("</p><p>")
Response.Write("Last name=" & Request.Form("name")(2))
Response.Write("</p>")
End if
%>
</body>
</html>
结果:
- ASP 程序
- ASP Server 对象
- ASP Drive 对象
- ASP ADO
- ASP 简介
- ASP WriteLine 方法
- ASP DateLastAccessed 属性
- ASP Drive 属性
- ASP Path 属性
- ASP IsRootFolder 属性
- ASP IsClientConnected 属性
- ASP QueryString 集合
- ASP Contents.Remove 方法
- ASP DriveExists 方法
- ASP FolderExists 方法
- ASP GetAbsolutePathName 方法
- ASP.NET HtmlTextArea 控件
- ASP.NET SelectedItem 属性
- 显示随机的链接
- 清空缓冲区