473,609 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

get all the form fields in a form

I'll never understand this

for each ?? in request.form.it ems
response.write ??

next

what the heck is ?? and how do yo dim it?
can it be any name?
Jan 26 '07 #1
20 19234
Hi Mr.,

foreach (string key in Request.Form.Al lKeys)
{
Response.Write( key);
Response.Write( "=");
Response.Write( Request.Form[key]);
Response.Write( "<br>");
}
--
Milosz
"Mr. SweatyFinger" wrote:
I'll never understand this

for each ?? in request.form.it ems
response.write ??

next

what the heck is ?? and how do yo dim it?
can it be any name?
Jan 26 '07 #2
I'll never understand this
>
for each ?? in request.form.it ems
response.write ??

next

what the heck is ?? and how do yo dim it?
can it be any name?
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
-----------------------------------------
Jan 26 '07 #3
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(It em)
Next


"Mr. SweatyFinger" <sw@sw1finger.c omwrote in message
news:eP******** ******@TK2MSFTN GP03.phx.gbl...
I'll never understand this

for each ?? in request.form.it ems
response.write ??

next

what the heck is ?? and how do yo dim it?
can it be any name?

Jan 26 '07 #4
For Each Item in Request.Form
Response.Write Item
Response.Write Request.Form(It em)
Next

I know off topic, anyone here know of a C# equivelent?

Gary.
Jan 26 '07 #5
"Gary" <g@nospam.comwr ote in message
news:eH******** ******@TK2MSFTN GP04.phx.gbl...
>For Each Item in Request.Form
Response.Wri te Item
Response.Wri te Request.Form(It em)
Next

I know off topic,

Why off-topic...? This is an ASP.NET newsgroup after all... :-)
anyone here know of a C# equivelent?
foreach (string strKey in Request.Form)
{
Response.Write( strKey);
Response.Write "=";
Response.Write( Request.Form[strKey].ToString());
Response.Write( "<br />");
}
Jan 26 '07 #6
I know off topic,
>
Why off-topic...? This is an ASP.NET newsgroup after all... :-)

Oh yeah :)

>anyone here know of a C# equivelent?

foreach (string strKey in Request.Form)
{
Response.Write( strKey);
Response.Write "=";
Response.Write( Request.Form[strKey].ToString());
Response.Write( "<br />");
}

Cheers dude.

G.
Jan 26 '07 #7
why does the thing need to be named "item"? or does it??


Jan 26 '07 #8
why does the thing need to be named "item"? or does it??

Doesn't have to be named item.
It's just a variable name dear!
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujinionline.com
-----------------------------------------
Jan 26 '07 #9
Dim AnyName as String
"Mr. SweatyFinger" <sw@sw1finger.c omwrote in message
news:ux******** ******@TK2MSFTN GP04.phx.gbl...
why does the thing need to be named "item"? or does it??


Jan 26 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2388
by: TG | last post by:
I have a form that POSTs to itself and validates data entered into the form. If all is well the form performs a header location command to move to the next input form in the series. If the user has entered an error within the form the user is NOT redirected to the next page and error messages are displayed indicating the fields that are in error. So far so good. The only problem is that all the input fields are now blanked out after the...
4
2628
by: bnp | last post by:
Hi All, I am quite new the JavaScript. Basically I am a C++ programmer, but now I am working on JavaScript since last 5 days. I have a problem regarding the form validation. I have created a script that validates the form fields. the validation procedure is called ONCLICK event of the submit button. Follwowing is the structure of the validation procedure.
4
9894
by: karenmiddleol | last post by:
I have the following form the user enters the From and to period and presses the Submit button and the form fields are cleared once the submit button is pressed. Is there a way I can keep the Form fields visible and not cleared. Also when I display the message I want the original form cleared in a different version of this page how can I clear the form completely when I display the data entered from the Response statements I do not...
3
2107
by: Nelson R. | last post by:
Hi, im using a form to get some input from the user. This form is in a HTML file. When I post the form directly to my email, i receive all fields correctly. Example test.html: <FORM action="MAILTO:myemail@work.com" method=post enctype="text/plain">
7
3801
by: Chuck Anderson | last post by:
I'm pretty much a JavaScript novice. I'm good at learning by example and changing those examples to suit my needs. That said .... ..... I have some select fields in a form I created for a database search that I am unable to figure out how to access. (The search is implemented in Php/MySQL.) The user enters search values for: name, address1, city, .... etc., ..... and for each of these they also select whether the search should...
7
14146
by: Perks | last post by:
Hi. I am trying to find out if it is possible to open a pdf file from within PHP, and parse its contents in order to extract all form fieldnames that might have been previously setup within the pdf itself. I want to find this out so that I can then generate a HTML form with all required questions, which when submitted, will generate a fdf / xfdf file, using the techniques from the following tutorial
4
2525
by: Mike De Petris | last post by:
I am using itextsharp to fill in and flatten some fields from data filled in a web form field and all works quite well. The question now is how to manage the pdf template that has the fields to be filled, changing it in acrobat is slow and difficult as there are no word processing tools. I tryed Foxit PDF Editor but cannot find a way to name the form fields. Is there a way to mantain a source document, for example in Word and...
3
3500
by: wparrott | last post by:
Hello everyone, I'm trying add a print button that opens a Word document and fills in form fields in the document based on the currently displayed record. The code works in a sample that I ran but I've run into a problem. The form I'm using contains both fields I need in the document and a sub-form with fields I need to populate the document. I get an error message 'MS Office Access can not find the field 'txtPOSIT2' referred to in your...
3
5837
by: guido | last post by:
I've written a user control to add form fields to a aspx page: Private Sub buildFields() 'Label1.Text = "building fields at " & System.DateTime.Now() Dim themeIDField As New TextBox() themeIDField.ID = "theme_id" themeNamePlaceholder.Controls.Add(themeIDField) End sub ....and call this at page_load. I now need to get the name value pairs of these fields to submit to a DB procedure. I've tried using
1
3396
by: Rick Owen | last post by:
Greetings, I have a form that, when submitted, calls a plsql procedure. The form has a number of fields (text, hidden, select, radio) but the particular field that is giving me problems is a <selectwhich allows multiple selection. When I receive the form values in my procedure I getting only the first value of those that are selected. For example if I select 1000, 1100, 1200, 1300 in the list I only get 1000 in my procedure. If I...
0
8129
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8571
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8220
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5509
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4017
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4080
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2530
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1386
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.