Concatenation in CF is &, not +.
Try something like:
<cfset errormsg = errormsg & "Your password and repeated password do not match.<br>">
HTH,
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - The Intelligent Mail Server
----- Original Message -----
From: "Michael Kear" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, May 20, 2001 11:11 AM
Subject: Concatenating strings.
> Whats wrong with this code? It seems to be following the examples I"ve
> seen before .. I want to add an error message to an existing error
> message, so as the template executes, as errors are found a comphensive
> list of errors found on the form are assembed, rather than just give them
> one error, fix that, submit the form, find another error kind of routine.
>
> But when I execute this code, I get the error that the CF Server cannot
> convert to number. I dont want a number, i want to concatenate the
> strings.
>
> [quote]
> <cfset errormsg = EVALUATE(errormsg + "Your password and repeated
> password do not match.<br>")>
> [end quote]
>
> I know the answer is simple (they're always teh ones that trip me up) but
> I can't see it. Can you?
>
> Cheers,
> Mike Kear
> AFP Webworks,
> Windsor, NSW, Australia
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists