RE: Generic CF form handler
Denny... That's what I'm shooting for. I've already got a working prototype using an XML file and some conditional code. I hope to have something to show the list in a few days. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Denny Valliant [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 6:16 PM To: CF-Talk Subject: Re: Generic CF form handler On 5/5/06, Andy Matthews [EMAIL PROTECTED] wrote: What I'm talking about it is to create a generic form processor. You feed it some values and it does all the work for you. The goal being that you'd never have to manually type out any of those values any more (except in the form setup). You just create your form as normal, point the action attribute to this form handler and that's it. The idea is to cut down on the work as much as possible. What you are proposing could just as easily generate the display for the form itself (prior to mailing). Take it a step further, and it could handle the edit display for the form as well. Instead of using params you pass to the processor, you could store the params in a DB (field name, field label, required, field type, maxlength, database field type, etc..), and you'd have yourself a content management system. My attempt at this has been interesting. I went the route of not even using standard table structure, and instead opted for single data type tables. One for varchar, one for text, one for longtext, etc.. While that did render a sort of flexibility, I'm taking a hit on the database end, because MySQL isn't really designed around that idea. You end up with tons of joins, obviously, or temp tables. I had to start using cache tables. I'd already had a quiz/survey builder that only stored the datatype and then created/modified a table to store the data, which is basically where I'm back to. Perhaps with a different DB it would make sense to use the single table per datatype idea. These object databases are starting to pique my interest... :DEN ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239887 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
A word of caution on this path. Part of our team embarked on a similar idea some months ago. To take the drudgery out of form creation and make forms adhere to various standards. They produced some custom tags that when combined would render a form including js validation and was also partly database driven so that the labels could be in multiple languages. All sounds great, but the reality was that the custom tags slowly became more and more complex to cater for more and more form layouts and peculiarities and combinations of form fields and special validation etc. Eventually using the custom tags required more knowledge and time than to create the form from scratch, and debugging some problems became almost impossible. So it was scrapped and slowly removed from live code it had found its way into. Not saying yours will be the same, just sharing our experience. :-) On 5/9/06, Andy Matthews [EMAIL PROTECTED] wrote: -- Mike T Blog http://www.socialpoints.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239889 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Generic CF form handler
Thanks, your comments are appreciated. It's my goal to make this as simple as possible. Like someone said earlier, at some point it's just easier to use the cfmail tag. That's not what I'm shooting for, although I can easily see how this could become extremely complex if not managed properly. I'm going for a standard two column form: label on the left, field on the right, with some very basic validation (required fields, and email is about it). !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 8:09 AM To: CF-Talk Subject: Re: Generic CF form handler A word of caution on this path. Part of our team embarked on a similar idea some months ago. To take the drudgery out of form creation and make forms adhere to various standards. They produced some custom tags that when combined would render a form including js validation and was also partly database driven so that the labels could be in multiple languages. All sounds great, but the reality was that the custom tags slowly became more and more complex to cater for more and more form layouts and peculiarities and combinations of form fields and special validation etc. Eventually using the custom tags required more knowledge and time than to create the form from scratch, and debugging some problems became almost impossible. So it was scrapped and slowly removed from live code it had found its way into. Not saying yours will be the same, just sharing our experience. :-) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239892 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
Quoting Mark Henderson [EMAIL PROTECTED]: Mark... That method works great if you have all text fields, or dropdowns, or textareas. But what if you have a raxio button or a checkbox? How do you indicate if a field is required? How do you perform validation on fields of a certain type? I'm writing something that is a point and shoot. Type out some lines of XML following the supplied pattern and it will build the form for you AND process it as well. andy Andy Matthews wrote: CFMAIL is a form handler, but it does require a moderate amount of coding to send the values of specific form fields to the recipient. What I'm talking about is something that you could use as a processing page for ANY form you create. You'd never need to touch the processing script at all, just set up the form and point it at the handler. Hi Andy I may be misunderstanding something here, so correct me if I'm wrong, but can't you just loop over the form collection inside cfmail? As far as the cfmail variables go, I usually have a globals file and set my email variables in that: cfset server_mail = [EMAIL PROTECTED] / cfset admin_mail = [EMAIL PROTECTED] / cfset webmaster_mail = [EMAIL PROTECTED] / When you want to process a form that requires mailing, attach the subject to the form submission url... form method=post action=processForm.cfm?subject=Form Subject or if you're using a framework this can obviously be done elsewhere (if it's fusebox, inside the fuseaction, for instance). Then the following should be able to hand most email submissions without the need for hardcoding. cfmail from=#server_mail# to=#admin_mail# subject=#subject# cfloop item=formfield collection=#form# cfif formfield NEQ fieldnames AND Trim(Len(formfield)) #formfield# : #form[formfield]# /cfif /cfloop /cfmail Code not tested but this should give you the general idea. HTH Adieu Mark ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239821 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
andy wrote: But what if you have a raxio button or a checkbox? How do you indicate if a field is required? How do you perform validation on fields of a certain type? OK I get it. Thats going to be fun. When I did something similar I used standard html form fields. Individual field validations/requirements and the accompanying error messages were fed in via a 2d array and validation was done against a regex server-side. The composite error page consisted of an unordered list put into a variable via cfsavecontent. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239829 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
On 5/5/06, Matt Robertson [EMAIL PROTECTED] wrote: Mark Henderson wrote: can't you just loop over the form collection inside cfmail? I don't get this either. At what point do you spend more time coding in parameters to your custom tag versus parameters into CFMail? This seems to me to just shift your typing duties from one place to another. Whats the diff between putting in a to: parameter into a tag called CF_formMail or putting a to: parameter into a tag called cfmail? And a loop over a struct is mighty simple stuff. What am I missing here? I think that maybe he was thinking of labels and postion formatting type stuff. One quick solution is to use underscores in your field names and then replace them with spaces(last_name). Use a little CSS for initcaps, and you end up with: Last Name: Valliant. Maybe an easy way would be to use html formatted mail and CSS sheets. You could use a simple coding scheme to pass additional formatting info... That would get you pretty close to a customized yet flexible cfmail formatting wrapper. OpenRico has an intersting example of form letters using AJAX. At least I think it was Rico... Something like that could be cool. :d ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239751 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
On 5/4/06, Eric Roberts [EMAIL PROTECTED] wrote: Call me ignorant, but why would this be necessary? It's not that hard to use cfmail. It sounds to me like what you are proposing would be more work. I would say that moderate coding is an overstatement. I don't get it...splain Lucy... The CFMail CMS. 2 gig inbox required. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239595 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Generic CF form handler
Denny, I get it! Ha! Very funny -Original Message- From: Denny Valliant [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 5:58 AM To: CF-Talk Subject: Re: Generic CF form handler On 5/4/06, Eric Roberts [EMAIL PROTECTED] wrote: Call me ignorant, but why would this be necessary? It's not that hard to use cfmail. It sounds to me like what you are proposing would be more work. I would say that moderate coding is an overstatement. I don't get it...splain Lucy... The CFMail CMS. 2 gig inbox required. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239599 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Generic CF form handler
Each time you create a processing page, there is work to be done. You have to type out the FORM labels and values, indicate the from, to and subject attributes and all that. So basically you have to create a form processing page for each form you're creating. What I'm talking about it is to create a generic form processor. You feed it some values and it does all the work for you. The goal being that you'd never have to manually type out any of those values any more (except in the form setup). You just create your form as normal, point the action attribute to this form handler and that's it. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Eric Roberts [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 7:10 PM To: CF-Talk Subject: RE: Generic CF form handler Call me ignorant, but why would this be necessary? It's not that hard to use cfmail. It sounds to me like what you are proposing would be more work. I would say that moderate coding is an overstatement. I don't get it...splain Lucy... Eric -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Thursday, 04 May 2006 10:24 To: CF-Talk Subject: RE: Generic CF form handler CFMAIL is a form handler, but it does require a moderate amount of coding to send the values of specific form fields to the recipient. What I'm talking about is something that you could use as a processing page for ANY form you create. You'd never need to touch the processing script at all, just set up the form and point it at the handler. I might even make it a custom tag which creates the form and the handler and does everything. Maybe based on an XML file or something. Anyway...if I do this, I'll offer it up for anyone who wants it. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Casey Dougall [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:50 AM To: CF-Talk Subject: Re: Generic CF form handler I though cfmail was a form handler... If this site is going to continue to create new forms, might as well make it dynamic... You can read more about the concept of doing so here. Includes database layout but no scripts. http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:44998 Casey On 5/4/06, Andy Matthews [EMAIL PROTECTED] wrote: Thanks Massimo...I'll take a look at it. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:16 AM To: CF-Talk Subject: Re: Generic CF form handler I'm thinking of writing a generic form handler which can be used for any form, sort of like the ubiquitous Matt's Wrights form.pl. Before I do that, I'm wondering if anyone else has something like this they'd care to share. If no one does, then I'll write it and share it with the class. I wrote this long time ago: http://www.olimpo.ch/tmt/tag/formailer/ Massimo ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239602 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
On 5/5/06, Andy Matthews [EMAIL PROTECTED] wrote: What I'm talking about it is to create a generic form processor. You feed it some values and it does all the work for you. The goal being that you'd never have to manually type out any of those values any more (except in the form setup). You just create your form as normal, point the action attribute to this form handler and that's it. The idea is to cut down on the work as much as possible. What you are proposing could just as easily generate the display for the form itself (prior to mailing). Take it a step further, and it could handle the edit display for the form as well. Instead of using params you pass to the processor, you could store the params in a DB (field name, field label, required, field type, maxlength, database field type, etc..), and you'd have yourself a content management system. My attempt at this has been interesting. I went the route of not even using standard table structure, and instead opted for single data type tables. One for varchar, one for text, one for longtext, etc.. While that did render a sort of flexibility, I'm taking a hit on the database end, because MySQL isn't really designed around that idea. You end up with tons of joins, obviously, or temp tables. I had to start using cache tables. I'd already had a quiz/survey builder that only stored the datatype and then created/modified a table to store the data, which is basically where I'm back to. Perhaps with a different DB it would make sense to use the single table per datatype idea. These object databases are starting to pique my interest... :DEN ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239725 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
Andy Matthews wrote: CFMAIL is a form handler, but it does require a moderate amount of coding to send the values of specific form fields to the recipient. What I'm talking about is something that you could use as a processing page for ANY form you create. You'd never need to touch the processing script at all, just set up the form and point it at the handler. Hi Andy I may be misunderstanding something here, so correct me if I'm wrong, but can't you just loop over the form collection inside cfmail? As far as the cfmail variables go, I usually have a globals file and set my email variables in that: cfset server_mail = [EMAIL PROTECTED] / cfset admin_mail = [EMAIL PROTECTED] / cfset webmaster_mail = [EMAIL PROTECTED] / When you want to process a form that requires mailing, attach the subject to the form submission url... form method=post action=processForm.cfm?subject=Form Subject or if you're using a framework this can obviously be done elsewhere (if it's fusebox, inside the fuseaction, for instance). Then the following should be able to hand most email submissions without the need for hardcoding. cfmail from=#server_mail# to=#admin_mail# subject=#subject# cfloop item=formfield collection=#form# cfif formfield NEQ fieldnames AND Trim(Len(formfield)) #formfield# : #form[formfield]# /cfif /cfloop /cfmail Code not tested but this should give you the general idea. HTH Adieu Mark ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239727 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
Mark Henderson wrote: can't you just loop over the form collection inside cfmail? I don't get this either. At what point do you spend more time coding in parameters to your custom tag versus parameters into CFMail? This seems to me to just shift your typing duties from one place to another. Whats the diff between putting in a to: parameter into a tag called CF_formMail or putting a to: parameter into a tag called cfmail? And a loop over a struct is mighty simple stuff. What am I missing here? ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239731 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Generic CF form handler
I have a client who is going to have several contact forms on their site, with the possibility of more to follow. I'm thinking of writing a generic form handler which can be used for any form, sort of like the ubiquitous Matt's Wrights form.pl. Before I do that, I'm wondering if anyone else has something like this they'd care to share. If no one does, then I'll write it and share it with the class. Thanks in advance. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239486 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
Hi Andy: I actually wrote a script that was intended to replace formmail, but using CF instead of Perl. I'll email it to you off-list, if you'd like. It's a pretty simple script. Ray Andy Matthews wrote: I have a client who is going to have several contact forms on their site, with the possibility of more to follow. I'm thinking of writing a generic form handler which can be used for any form, sort of like the ubiquitous Matt's Wrights form.pl. Before I do that, I'm wondering if anyone else has something like this they'd care to share. If no one does, then I'll write it and share it with the class. Thanks in advance. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239491 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
I'm thinking of writing a generic form handler which can be used for any form, sort of like the ubiquitous Matt's Wrights form.pl. Before I do that, I'm wondering if anyone else has something like this they'd care to share. If no one does, then I'll write it and share it with the class. I wrote this long time ago: http://www.olimpo.ch/tmt/tag/formailer/ Massimo ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239492 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
Wow! Matt Wright... that takes me back sorry to be so OT ;) m. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239493 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Generic CF form handler
Thanks Massimo...I'll take a look at it. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:16 AM To: CF-Talk Subject: Re: Generic CF form handler I'm thinking of writing a generic form handler which can be used for any form, sort of like the ubiquitous Matt's Wrights form.pl. Before I do that, I'm wondering if anyone else has something like this they'd care to share. If no one does, then I'll write it and share it with the class. I wrote this long time ago: http://www.olimpo.ch/tmt/tag/formailer/ Massimo ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239494 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Generic CF form handler
I though cfmail was a form handler... If this site is going to continue to create new forms, might as well make it dynamic... You can read more about the concept of doing so here. Includes database layout but no scripts. http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:44998 Casey On 5/4/06, Andy Matthews [EMAIL PROTECTED] wrote: Thanks Massimo...I'll take a look at it. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:16 AM To: CF-Talk Subject: Re: Generic CF form handler I'm thinking of writing a generic form handler which can be used for any form, sort of like the ubiquitous Matt's Wrights form.pl. Before I do that, I'm wondering if anyone else has something like this they'd care to share. If no one does, then I'll write it and share it with the class. I wrote this long time ago: http://www.olimpo.ch/tmt/tag/formailer/ Massimo ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239500 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Generic CF form handler
I'd love to look at it if you're interested in mailing it over. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Crow T. Robot [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:01 AM To: CF-Talk Subject: Re: Generic CF form handler Hi Andy: I actually wrote a script that was intended to replace formmail, but using CF instead of Perl. I'll email it to you off-list, if you'd like. It's a pretty simple script. Ray Andy Matthews wrote: I have a client who is going to have several contact forms on their site, with the possibility of more to follow. I'm thinking of writing a generic form handler which can be used for any form, sort of like the ubiquitous Matt's Wrights form.pl. Before I do that, I'm wondering if anyone else has something like this they'd care to share. If no one does, then I'll write it and share it with the class. Thanks in advance. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239504 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Generic CF form handler
CFMAIL is a form handler, but it does require a moderate amount of coding to send the values of specific form fields to the recipient. What I'm talking about is something that you could use as a processing page for ANY form you create. You'd never need to touch the processing script at all, just set up the form and point it at the handler. I might even make it a custom tag which creates the form and the handler and does everything. Maybe based on an XML file or something. Anyway...if I do this, I'll offer it up for anyone who wants it. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: Casey Dougall [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:50 AM To: CF-Talk Subject: Re: Generic CF form handler I though cfmail was a form handler... If this site is going to continue to create new forms, might as well make it dynamic... You can read more about the concept of doing so here. Includes database layout but no scripts. http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:44998 Casey On 5/4/06, Andy Matthews [EMAIL PROTECTED] wrote: Thanks Massimo...I'll take a look at it. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:16 AM To: CF-Talk Subject: Re: Generic CF form handler I'm thinking of writing a generic form handler which can be used for any form, sort of like the ubiquitous Matt's Wrights form.pl. Before I do that, I'm wondering if anyone else has something like this they'd care to share. If no one does, then I'll write it and share it with the class. I wrote this long time ago: http://www.olimpo.ch/tmt/tag/formailer/ Massimo ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239506 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54