My form has a textarea in which a user can input multiple values, one per
line, eg:

Green eggs and ham
Biscuits
Orange juice

On form submission, the value of form.textarea is a string "Green eggs and
ham Biscuits Orange juice"

I want to convert the above to a comma delimited list, eg:

"Green eggs and ham, Biscuits, Orange juice"

I've been trying to use REReplace to replace new line returns with commas -
unsuccessfully. Replacing spaces isn't working either because lines 1 and 3
have spaces in them but should each be considered a single list item.

I know this is done all the time, just not by me.  Advice? Thanks.

-------------
Regards,
Bob Haroche
O n P o i n t  S o l u t i o n s
www.OnPointSolutions.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185405
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to