Advertisement

03.17.2006 at 03:54PM PST, ID: 21778812
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

How to make multi-line textarea field results into a delimited list

Asked by brucecrabtree in ColdFusion Application Server

Tags:

I have set up a textarea field for users to enter email addresses to send a notice to. I've been trying to convert the results into a comma-delimited list, which I can then use as a recipient list for CFMAIL. I've tried using the Replace and ChangeList Delims functions but nothing is working -- if I enter this in the text area:

1
2
3
4
5

I always get this as the result:

1 2 3 4 5

I need this:

1,2,3,4,5

Here's the form I'm using as a test:

<form action="#cgi.query_string#" method="post">
<textarea name="addresses" cols="40" rows="10" wrap="physical"></textarea>
<input name="Submit" type="submit" value="Submit">

</form>

I've tried all variations on the wrap attribute in the form.

Here's the code I've tried to change the results:

<cfif isDefined("form.addresses")>
<cfset addresses=#form.addresses#>
<cfset addresses = ListChangeDelims(addresses, ",")>
 <cfoutput>#addresses#</cfoutput>
</cfif>

I've also tried this:

<cfif isDefined("form.addresses")>
<cfset addresses = #form.addresses#>
<cfset addresses = Replace(addresses, "chr(10)&chr(13)", ",", "ALL")>
 <cfoutput>addresses2</cfoutput>
</cfif>

And this:

<cfif isDefined("form.addresses")>
<cfset addresses = #form.addresses#>
<cfset addresses = Replace(addresses, "#chr(10)##(13)#", ",", "ALL")>
 <cfoutput>addresses2</cfoutput>
</cfif>
Start Free Trial
 
Keywords: How to make multi-line textarea field r…
 
Loading Advertisement...
 
[+][-]03.17.2006 at 05:53PM PST, ID: 16222171

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.17.2006 at 07:40PM PST, ID: 16222454

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: ColdFusion Application Server
Tags: textarea
Sign Up Now!
Solution Provided By: pmascari
Participating Experts: 5
Solution Grade: A
 
 
[+][-]03.17.2006 at 10:57PM PST, ID: 16222922

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.18.2006 at 07:09AM PST, ID: 16224619

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2006 at 12:47PM PST, ID: 16231021

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2006 at 01:14PM PST, ID: 16231174

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2006 at 02:54PM PST, ID: 16231698

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2006 at 02:59PM PST, ID: 16231722

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2006 at 03:06PM PST, ID: 16231750

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2006 at 03:07PM PST, ID: 16231760

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2006 at 03:14PM PST, ID: 16231781

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2006 at 03:34PM PST, ID: 16231876

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.21.2006 at 02:26AM PST, ID: 16245362

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.21.2006 at 06:34AM PST, ID: 16247020

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.21.2006 at 07:13PM PST, ID: 16253914

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.21.2006 at 07:28PM PST, ID: 16253972

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.22.2006 at 12:01AM PST, ID: 16255007

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.22.2006 at 12:08AM PST, ID: 16255026

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 - Hierarchy