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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

array passed thru session variable 1

Status
Not open for further replies.

trix13

Programmer
Feb 20, 2006
30
US
I have an array that I place into a session variable and pass to my new page. Now on my new page, I want to access the elements of that array. When I use

Code:
myclubs = session("myclubs")

the information is passed, however it is one long string. How can I turn my session variable back into an array with numbered elements for placement on my page? Also some of the array elements are null and the string is comma separated. I've tried ubound and whatnot and obviously because it is a string none of my typical loops are working. Any suggestions please?

-trix
"Wiggle your big toe.
 
dim myarray
myclubs = session("myclubs")
myarray=split(myclubs,",")

for i=0 to ubound(myarray)
...
next

-DNG
 
Split() function?

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
THAT did it thank you so much. I was clueless!!!

-trix
"Wiggle your big toe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top