Passing Array as QueryString

How is this done, and how is it "opened" on the ensuing page?

Bob SchneiderCo-OwnerAsked:
Who is Participating?
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
It has to be converted to name/value pairs and put in the querystring: shows how to construct and decode it.
rhawkConnect With a Mentor Commented:
Off hand...
Here is a simple array.

<script type="text/javascript">
var a = new Array();


Put that value into a hidden field (I called it array) and then post the form. On the other end, grab the value from request("array") and use split to convert it back to an array. The new array will be in the same order as the original.
Bob SchneiderCo-OwnerAuthor Commented:
Actually, I wrote it to a string and then broke it up into an array on the next page.
Bob SchneiderCo-OwnerAuthor Commented:
Thanks a bunch!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.