469,303 Members | 2,047 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,303 developers. It's quick & easy.

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 3111
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Chris John Jordan | last post: by
2 posts views Thread by Srihari | last post: by
5 posts views Thread by Nathan Sokalski | last post: by
reply views Thread by buntyindia | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.