Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form values not getting posted

Status
Not open for further replies.

lpatnaik

Programmer
Jul 11, 2002
53
0
0
Hi,

I am having an asp page where there is a form within which there are some textboxes and some hidden elements along with a few buttons. On clicking on one of these buttons, the form gets posted to another page. When i try to retreive the Request.form collection, I sometimes do not get values for the form's elements. But sometimes, it works fine. Can you tell me in which case, the form's request collection could be empty.

Lopa
 
Are there some checkboxes in the forms elements?
these will only be send when they have a value - ie they are checked.

Do you have form elements with the same name, these will be sent as an array and you will need to iterate through them.

I use a sub called formdump:

Sub formDump()
Dim x
For each x in Request.Form
Response.write x &&quot;:&quot;& chr(9) & Request.Form(x) &&quot;<br>&quot;
Next
End Sub


call it using

formDump()


hth

simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top