Replace or append items in coldfusioin string
Posted on 2014-04-18
I have a form with some checkboxes. When the form is submitted, the items are saved as a string and separated by commas. So if the checkboxes for "bob", "larry" and "greg" were selected the form value is: bob,larry,greg
I need to take each of those values and add "@mycomp.com" and separate them with semi colons (except the last one). So, they would be: email@example.com; firstname.lastname@example.org; email@example.com
I'd also like to create a list with the values after they are set with the @mycomp.com.
Could someone assist?