how to retrieve string from comma separated values entered in textbox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amruta ozarkar
    New Member
    • May 2011
    • 1

    how to retrieve string from comma separated values entered in textbox?

    I have a textbox and a submit button in coldfusion page.
    user can enter multiple comma separated values in the textbox. on click of the button, i want to print only the strings from the textbox ignoring the delimiter comma or spaces.
    how should i do it? is there any function in coldfusion for that? i want to avoid javascript.. have to use coldfusion only...
    Last edited by Niheel; May 27 '11, 04:34 PM. Reason: Please use proper spelling and punctuation in your questions.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You can use any string with delimiters as a list and loop over it using cfloop. The default delimiter is comma, but you can specify the delimiter if it's different.

    Comment

    Working...