Something like this?

<cfif someObject.validateTheForm(argumentCollection = form) >
     <cfset variables.foo =
anotherObject.doSomethingWithForm(argumentCollection = form) />
<cfelse>
     Form did not validate
</cfif>

Or, are you wanting to pass the form data to another cfc method from
within the validation method? If so, something like this:

<cffunction name="validateTheForm" ...>
   <cfargument name="foo" ... />
   <cfargument name="bar" ... />

   <cfscript>
        ...
        someOtherObject.doSomethingWithFormData( argumentCollection =
arguments ) ;
        ...
   </cfscript>
</cffunction>

Dominic

2008/11/1 Rick Faircloth <[EMAIL PROTECTED]>:
> Hi, all...
>
> Can form variables be passed around between a calling page and
> multiple cfc's?
>
> I have a form with data I want to validate, then generate an email with.
>
> I have the calling page with the form, which sends the form data via
> argumentCollection,
> to a form_validation.cfc.  If the form data passes validation, then I
> want to send the form
> data to an email_processing.cfc for email generation.
>
> Would the form variables be available to the calling page and both cfc's
> in this case?
> Or do I need to create session variables or another type of variable to
> pass the values
> around?
>
> Thanks,
>
> Rick
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:314716
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to