ASP Form Array - Delimiter Problem

R

rhungund

Hey all...

I'm submitting various form variables as arrays, so when I do try to
access them when the form is submitted, i do a split on the variable
and pop it into an array.

for example:
aDescriptions = split(request.form("strDescriptions"), ", ")

The problem however is if a description contains a comma in the text,
it throws off the split function.

Question is, is there a way to change the delimiter of the form array
to something other than a comma. Or does anyone here know a more
elegant workaround.

thanks.
 
R

Ray Costanzo [MVP]

Yes, there is no reason to split. You can do:

For Each q in Request.Form("strDescriptions")
'''your code
Response.Write "One of the values: " & q & "<br>"
Next

Ray at work
 

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
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top