I need to combine a number of variables used to generate a CAPTCHA image into one variable using CFSET. The first character of the CAPTCHA is called something like var1, the second is something like var2, etc.
Of course I've gotten errors when I try it like this:
<cfset CaptchaCode = var1var2var3var4var5>
or like this
<cfset CaptchaCode = #var1##var2##var3##var4#var5#>
or like this
<cfset CaptchaCode = "var1var2var3var4var5">
or like this
<cfset CaptchaCode = (var1)(var2)(var3)(var4)(var5)>
I also tried a list, but I don't want the commas. How do you indicate to CF that you are combining several variables into one without calling a non-existent variable? Must be some syntax needed with CFSET that I don't know about. Anyone?
Of course I've gotten errors when I try it like this:
<cfset CaptchaCode = var1var2var3var4var5>
or like this
<cfset CaptchaCode = #var1##var2##var3##var4#var5#>
or like this
<cfset CaptchaCode = "var1var2var3var4var5">
or like this
<cfset CaptchaCode = (var1)(var2)(var3)(var4)(var5)>
I also tried a list, but I don't want the commas. How do you indicate to CF that you are combining several variables into one without calling a non-existent variable? Must be some syntax needed with CFSET that I don't know about. Anyone?