Not getting form values

D

David C

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
 
D

David

Still getting nothing. Do you know of anything that would keep me from
getting results in Request.Form ?

David
 
B

Bob Barrows [MVP]

David said:
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
 
D

David

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top