Request.Form & Arrays

J

James Baker

I'm trying to use Request.Form to gather information in an array and I keep
getting a type mismatch...not sure if it's even possible. Basically, Page 1
posts to Page 2...and Page 1 contains a variable declared as:

Dim mLic(50)

....which is then populated. When I try:

Request.Form("mLic()") or
Request.Form("mLic") or
Request.Form("mLic(50)")

I get a type mismatch every time. Is there a better/right way to do this?

Thanks!
James
 
A

Aaron [SQL Server MVP]

How are you sending an "array" via post? Get and Post handle strings
only... you't can pass an array like this and retrieve it via the request
collection.
 
B

Bob Barrows [MVP]

James said:
I'm trying to use Request.Form to gather information in an array and
I keep getting a type mismatch...not sure if it's even possible.
Basically, Page 1 posts to Page 2...and Page 1 contains a variable
declared as:

Dim mLic(50)

...which is then populated.

Does this occur in client-side or server-side code?

Bob Barrows
 
J

James Baker

Server side...I realized the error of my ways when trying to "POST" the
array. Now I'm searching for a better approach.
 

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,154
Messages
2,570,870
Members
47,400
Latest member
FloridaFvt

Latest Threads

Top