Thursday, January 25, 2007

Fifty million contact forms

Having made about fifty million contact forms for fifty million clients, I've come up with a little system.

The contact form is processed with a ColdFusion script - really just a snippet of code, which I'll provide upon request, but at the moment I don't remember how to escape the HTML to put it on an HTML page. The contact form has a readable "name" attribute - such as "first_name" - that code will output a neat list of the form field name/value pairs and email it.

My host company requires that the email address in be a valid user in the domain, so I create a user called something like "contactform", have its mail forwarded to the client's real email address, and put contactform@clientsdomain.com in the "to" field.

To test the form, I create a user "webadmin", and have it forwarded to my email address. When the form is working fine, I edit the code to have the "contactform" email address in the "To" field. Sometimes I put mine in a BCC field so that both the client and me receive the form info.

That's it. Works great for me. I'm about to go finish this one for the artist's site.

0 Comments:

Post a Comment

<< Home