how do I parse a textbox of text separated by carriage returns?

M

mike

how do I parse a textbox of text separated by carriage returns?

I have a web form with a textbox, when the user presses submit I would
like to process the text in the textbox line by line. How can I
iterate through it line by line and do something on each line of text?

Thanks for any help,
Mike
 
A

Aaron Bertrand [SQL Server MVP]

x = Request.Form("textboxname")
lines = split(x, VBCrLf)
for i = 0 to ubound(lines)
response.write lines(i) & "<br>"
next
 

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,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top