There is no one right answer to this question. Two popular methods:
1) Submit to a CFM page the same way you always do (submitting a page to itself is popular) and then use a component(s) in place of what you might have used to have done with SQL, etc. You could, for instance, use a cached component to do data validation, then another component to do database activity. 2) Submit the form to a CFC directly -- you can call REMOTE methods on a CFC directly from a URL by passing ?method=foo. Keep in mind that you'll be exposing those methods to anyone with access to the web server, so be very careful how you construct that code. If you do use this method, you might consider building facade CFCs (see earlier discussion on facades) that do nothing but manage form submissions and call the appropriate underlying code. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Bogesdorfer, Dan > Sent: Friday, August 15, 2003 6:59 AM > To: '[EMAIL PROTECTED]' > Subject: [CFCDev] Correct way in calling CFC's > > > First time poster to the list. I've been doing CF for a few > years and have > implemented a few cfc's. My question to the list is. When creating web > forms what is the correct way to submit inserts, updates, and queries to > cfc's? Is everything done through a single Form e.g. posting back > to itself. > > Thanks. > > Daniel Bogesdorfer > Senior Programmer / Analyst > Office Of Research, Health Sciences > University of Pittsburgh > 412.648.2366 ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
