473,382 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Not getting form values

I have the following line of code in my asp page

Dim ix
For ix = 1 to Request.Form.Count
fieldName = Request.Form.Key(ix)
fieldValue = Request.Form.Item(ix)
Response.Write fieldName
Response.Write fieldValue &
Next
Response.End

It is not returning the results of any field on the previous form page.
Does anyone know what I might look for? Thanks.

David
Jul 19 '05 #1
10 3228
Instead look at

for each item in Request.Form
Response.Write item & "-" & Request.Form(item) & "<br>"
next
Curt

"David C" <dl*****@lifetimeinc.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
I have the following line of code in my asp page

Dim ix
For ix = 1 to Request.Form.Count
fieldName = Request.Form.Key(ix)
fieldValue = Request.Form.Item(ix)
Response.Write fieldName
Response.Write fieldValue &
Next
Response.End

It is not returning the results of any field on the previous form page.
Does anyone know what I might look for? Thanks.

David

Jul 19 '05 #2

fieldName = ix
fieldValue = Request.Form(ix)

Bob Lehmann

"David C" <dl*****@lifetimeinc.com> wrote in message
news:#q**************@TK2MSFTNGP12.phx.gbl...
I have the following line of code in my asp page

Dim ix
For ix = 1 to Request.Form.Count
fieldName = Request.Form.Key(ix)
fieldValue = Request.Form.Item(ix)
Response.Write fieldName
Response.Write fieldValue &
Next
Response.End

It is not returning the results of any field on the previous form page.
Does anyone know what I might look for? Thanks.

David

Jul 19 '05 #3
Still nothing. Is there maybe a problem because I have 2 <SPAM>
sections inside of the form?

David

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4
? <spam> or <span> ?
That shouldnt' matter anyway. I'd suggest hitting up a clientside group
though, this isn't an ASP issue, it's a javascript one.

Curt

"David" <da***@biteme.com> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Still nothing. Is there maybe a problem because I have 2 <SPAM>
sections inside of the form?

David

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #5
Still not getting anything back. The only thing I see in this form that
is not in another form that does return values are 2 SPAN sections. Any
idea why nothing comes back on Request.form items?

David

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #6
Still getting nothing. Do you know of anything that would keep me from
getting results in Request.Form ?

David

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #7
David C wrote:
I have the following line of code in my asp page

Dim ix
For ix = 1 to Request.Form.Count
fieldName = Request.Form.Key(ix)
fieldValue = Request.Form.Item(ix)
Response.Write fieldName
Response.Write fieldValue &
Next
Response.End

It is not returning the results of any field on the previous form
page. Does anyone know what I might look for? Thanks.

David


Back to basics:
Show us a small portion of the form you are submitting that reproduces the
problem. Cut it down to the smallest size possible that still reproduces the
problem (we're not going to slog through 1000 lines of html to find the
<form> element - at least, I'm not)

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #8
Are you using method=POST for your form? ___POST___

http://www.aspfaq.com/5007

Ray at work
"David" <da***@biteme.com> wrote in message
news:OQ**************@tk2msftngp13.phx.gbl...
Still getting nothing. Do you know of anything that would keep me from
getting results in Request.Form ?

David

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #9
Yes, I am using method=POST

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #10
What it turned out to be is that I was going to the new page from a
hyperlink and when you do that, there are no form variables passed. I
changed it to run a javascript function and passed it the url info and
that function submit() ed the form.

Thanks all.

David

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #11

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

Similar topics

2
by: spiderman | last post by:
Hi, How can I getting parameter values from more than 1 HTML form onto the same ASP page? Thank you
1
by: Chris John Jordan | last post by:
Can anyone suggest a way of getting FORM to post only its own control values? I find by default each FORM on a page POSTs the variables of all FORMs on the page, and this prevents my common ACTION...
2
by: Srihari | last post by:
Hi Iam using two list boxes and able to sending values from one to another. When submitting the form iam not getting the values those moved accross. Can any one help me on this.
5
by: Nathan Sokalski | last post by:
I have a user control that contains three variables which are accessed through public properties. They are declared immediately below the "Web Form Designer Generated Code" section. Every time an...
1
by: kamleshsharmadts | last post by:
I am using Ajax with struts in web application. from jsp i am calling a function of ajax.js onclick of a button. code of that call function which calling from jsp given as below:- ...
4
by: preeti13 | last post by:
Hi friends i have a probelm i am try to pass the value to the employeeid parameter but getting th error please help me how i can do this i am getting the error here is my code using System;...
0
by: buntyindia | last post by:
Hi, I have a very strange problem with my application. I have developed it using Struts. I have a TextBox With Some fixed value in it and on Submit iam passing it to another page. <html:form...
1
by: Ben Brown | last post by:
I'm having some problems.. I have some javascript generated input elements with dynamic names and values. ex: <input name = "t1Name" .../> <input name = "t2Name" .../> ..... <input name =...
9
Catalyst159
by: Catalyst159 | last post by:
I have a form which is used to calculate residential Floor Area Ratio (FAR). The form is structured into seven parts as follows: Part A: Maximum FAR and Floor Area: Part B: Gross Floor Area of...
15
by: rleepac | last post by:
This is a little complicated but I'll do my best to explain. In my db I have a table called L_AgeCorrection which has the following fields: Age, Sex, Frequency, AgeValue This is a table used to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.