kensington45
Technical User
- Jun 26, 2008
- 9
I have form.mydata coming to my action page with comma delimeters:
adam,joe,ben,steve,jill,andy,david
I want to seperate them and it works inside this loop:
How do I get them to print outside of loop?
This didnt work because it only printed the first value only and not all of them:
adam,joe,ben,steve,jill,andy,david
I want to seperate them and it works inside this loop:
Code:
<cfset myd = "">
<cfloop list="form.mydata" index="i" delimiters=",">
<cfoutput>
<cfset myd = "#i#">
#myd#<br />
</cfoutput>
</cfloop>
How do I get them to print outside of loop?
This didnt work because it only printed the first value only and not all of them:
Code:
<cfset myd = "">
<cfloop list="form.mydata" index="i" delimiters=",">
<cfoutput>
<cfset myd = "#i#">
</cfoutput>
</cfloop>
<cfoutput>
#myd#<br />
</cfoutput>