Hi Ray Here is the complete code. This validates form entries and creates an error message. this works fine I am just wanting to get rid of the "evaluate"
<cfset variableNames=list=" workshopCode, workshopTitle, workshopTitleShort, workshopTitleEmail, workshopWeb, workshopInstructions "> <cfloop list="#variableNames#" index="variableNames" delimiters = ","> <cfset trimVariable=reReplace(variableNames,chr(10),"", "all" )> <cfset trimVariable=reReplace(trimVariable,chr(13),"", "all" )> <cfset "error#trimVariable#"=""> <cfif evaluate(variableNames) is ""> <cfset "error#trimVariable#"= "<h5>This item can not be blank</h5>"> <cfset error="1"> </cfif> </cfloop> Thanks Rob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5845 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
