获取表单中的所有表单字段 [英] get all the form fields in a form
问题描述
我永远不会理解这个
每个
?在request.form.items
response.write ??
next
到底是什么?你怎么朦胧吗?
它可以是任何名字吗?
I''ll never understand this
for each ?? in request.form.items
response.write ??
next
what the heck is ?? and how do yo dim it?
can it be any name?
推荐答案
嗨先生,
foreach(Request.Form.AllKeys中的字符串键)
{
Response.Write(key);
Response.Write(" =");
Response.Write(Request.Form [key]);
Response.Write("< br> );
}
-
Milosz
" Mr。 SweatyFinger"写道:
Hi Mr.,
foreach (string key in Request.Form.AllKeys)
{
Response.Write(key);
Response.Write("=");
Response.Write(Request.Form[key]);
Response.Write("<br>");
}
--
Milosz
"Mr. SweatyFinger" wrote:
我永远不会理解这个
每个
?在request.form.items
response.write ??
next
到底是什么?你怎么朦胧吗?
它可以是任何名字吗?
I''ll never understand this
for each ?? in request.form.items
response.write ??
next
what the heck is ?? and how do yo dim it?
can it be any name?
我永远不会理解这个
I''ll never understand this
>
每个
?在request.form.items
response.write ??
next
到底是什么?你怎么朦胧吗?
可以是任何名字吗?
>
for each ?? in request.form.items
response.write ??
next
what the heck is ?? and how do yo dim it?
can it be any name?
Dim entryName as String
for Request.Form中的每个entryName
Response.Write (" Name:"& entryName&"< br />")
Response.Write(" Value:"& Request.Form [entryName]& ;"< br />")
next
HTH
-
快乐黑客,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujinionline.com
--------------------- --------------------
Dim entryName as String
for each entryName in Request.Form
Response.Write("Name: " & entryName & "<br/>")
Response.Write("Value: " & Request.Form[entryName] & "<br/>")
next
HTH
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujinionline.com
-----------------------------------------
For Each循环遍历Request.Form集合中的项目,
和item是一个字符串,指定表格字段的名称'
发送
Dim Item as String
Request.Form中的每个项目
Response.Write项目
Response.Write Request.Form(Item)
下一页
" Mr。 SweatyFinger" < sw@sw1finger.com写信息
新闻:eP ************** @ TK2MSFTNGP03.phx.gbl ...
For Each makes a loop through items in collection of Request.Form,
and item is a string, specifying the name of the form field that''s being
sent
Dim Item as String
For Each Item in Request.Form
Response.Write Item
Response.Write Request.Form(Item)
Next
"Mr. SweatyFinger" <sw@sw1finger.comwrote in message
news:eP**************@TK2MSFTNGP03.phx.gbl...
我永远不会理解这个
每个
?在request.form.items
response.write ??
next
到底是什么?你怎么瞎了?
可以是任何名字吗?
I''ll never understand this
for each ?? in request.form.items
response.write ??
next
what the heck is ?? and how do yo dim it?
can it be any name?
这篇关于获取表单中的所有表单字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!