Yeah, I know... I was trying not to get to deep into the code since it involves so many parts, but here' s shortened version:
------------------------------------------------------------------------------------------------- cma.cfm (calling page) ------------------------------------------------------------------------------------------------- <form id="cma" name="cma" action="cma.cfm#error_message" method="post"> <cfif isdefined("form.fieldnames")> <input name="home_phone_time" type="text" size="75" value="<cfoutput>#form.home_phone_time#</cfoutput>" class="textinput01"> <cfelse> <input name="home_phone_time" type="text" size="75" value="" class="textinput01"> </cfif> <input name="submit" type="submit" value="Submit"> </form> When the page is submitted back to itself, this code kicks in: <cfif isDefined("form.fieldnames")> <cfinvoke component = "fortstewart.components.form_validation" method = "validate_cma_form" argumentCollection = "#form#" returnVariable = "form_errors"> </cfif> <cfif IsDefined("form.fieldnames") and StructIsEmpty(form_errors)> <cfinvoke component = "fortstewart.components.email_processing" method = "cma_email" argumentCollection = "#form#"> </cfif> ----------------------------------------------------------------------------------------------------------------- form_validation.cfc ----------------------------------------------------------------------------------------------------------------- <cffunction name = "validate_cma_form" displayname = "validate_cma_form" hint = "Validates Comparative Marketing Analysis Form Data" output = "false" access = "remote"> <cfset form_errors = structNew()> <cfif Not Len(Trim(arguments.name))> <cfset form_errors.name = "Please enter your name."> </cfif> <cfif Not Len(Trim(arguments.email))> <cfset form_errors.email = "Please enter your email address."> </cfif> <cfif len(trim(arguments.email)) and (arguments.email does not contain "@" or arguments.email does not contain ".")> <cfset form_errors.email = "Please enter a properly formatted email address."> </cfif> <cfreturn form_errors /> </cffunction> --------------------------------------------------------------------------------------------------------------------------------- email_processing.cfc --------------------------------------------------------------------------------------------------------------------------------- <cffunction name = "cma_email" displayname = "cma_email" hint = "Emails Comparative Marketing Analyis Request" output = "false" access = "remote"> <cfargument name = "name" required = "yes"> <cfargument name = "email" required = "yes"> <cfmail to = "[EMAIL PROTECTED]" from = "#arguments.email#" subject = "Comparative Marketing Request"> The following Comparative Marketing Request was sent from the FortStewart.com website: Date: #dateformat(now(), 'mmm d, yyyy')# Time: #timeformat(now(), 'h:mm tt')# Name: #arguments.name# Email Address: #arguments.email# Home Phone: #arguments.home_phone# Best time to call at home: #arguments.home_phone_time# (etc....) </cfmail> <cflocation url="cma_email_confirmation.cfm" addtoken="no"> </cffunction> The cfc's work fine when the home_phone, home_phone_time, work_phone, and work_phone_time fields are left empty. ??? Thanks, Rick Adrian Lynch wrote: > Kinda hard to tell you what's wrong without some code. > > Adrian > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314746 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4