PDA

View Full Version : Form Data Process


kjun1
1-5-09, 12:03 AM
Due to SPAM, I recently changed the handling of my form results from "Send to email" to "Send to file" and now have the results sent to a .txt file stored in my _private folder.

Is there anyway to automate a process that will check the txt file for new data and then send it to me by email? Or do I have to learn how to set up a database, create a scheduled job, etc... which I know nothing about.

Thanks in advance.

snowmaker
1-5-09, 10:29 AM
Soupermail (http://sourceforge.net/projects/soupermail/) is a form processor Perl script that, while it is somewhat outdated, will do that. It's fairly easy to get it going, but ask away if you have any problems.

entrecon
1-5-09, 11:05 AM
Instead of dealing with the send to file and processing the file, why not clean up the form and add a Captcha or other kind of data validation to stop the SPAM from being entered into the form? If the issue is with your e-mail address being visible in the code, processing it through a script will help hide the e-mail address.

kjun1
1-5-09, 11:29 AM
Thanks much Bruce and Entrecon. I'll be working on this later tonite and will check out Soupermail. I was initially going to use a Captcha until some of the forum posts convinced me otherwise. Perhaps I need to reconsider.
Catch ya later.

snowmaker
1-5-09, 12:36 PM
I've also had success using this guestbook script, http://www.carbonize.co.uk/Lazarus/, as a 'contact form', as well as a guestbook. It can also be used to update/add to content on a page, which is actually very similar to a guestbook anyway..