Click to See Complete Forum and Search --> : [RESOLVED] split one long string into a multi-dimentional array?


nursa
07-28-2010, 10:37 AM
if i used this code to retrieve a form's elements and values, would i be able to split it down into (in this case) a 2 dimensional array? if so, how? :D

Dim i, arr1
arr1=split(Request.Form,"&")

for i=0 to ubound(arr1)
--i'm guessing i'll need a loop of some sort?
next

cheers

yamaharuss
07-28-2010, 02:42 PM
for x = 1 to request.form.count()
if request.form.item(x)<>"" then ' checks to see if item is blank - won't send blank items
if request.Form.key(x)<>"Submit" then
response.write "<b>" & (request.form.key(x) & "</b> = ")
response.write(request.form.item(x) & "<br>")
End If
End If
next

nursa
07-29-2010, 04:31 AM
awsome, thanks