View Full Version : to create a simple "send us an email" form... perl/cgi or php/mysql

code beginner
04-23-2010, 05:35 PM

I've been looking into php/mysql to perform exactly one task: to create a "contact us" web page like this:

your name:

your email:


Exactly like this web page, but without the dropdown menu options they have:

I've been reading vaguely about something called smtp (simple mail transfer protocol), which involves CGI. But smtp apparently has spam issues associated with it, and it looks like it might be outdated.

So I've been looking at PHP/MySQL. But I'm not trying to create a "database". I'm looking to have the web visitors comment fields to simply go to an offsite email address that can be read. Worst comes to worst, I could simply put an image up that says "email us at webaddress@companyname.com." But the form like the KPMG one looks nicer.

So is there something with Perl/CGI that elegantly does this? I've been looking into learning PHP/MySQL for this one capability only. But I've been spinning my tires trying to find a straight-forward book on PHP/MySQL. So I'm willing to learn the basics Perl/CGI instead if it can perform this simple email task well. I'm looking to avoid robot spam and malicious attacks.

Thanks for any insights.

04-24-2010, 12:32 AM
look up nts-formmail project, I think. search CF for posts by fishmonger and the keyword formmail, heck, I'll do it now...



04-24-2010, 06:34 AM
The following pages will be useful:
A simple, easy PHP contact form (http://www.html-form-guide.com/contact-form/simple-php-contact-form.html)

Perl based form mail (http://www.html-form-guide.com/form-mail/cgi-form-mail.html)

04-26-2010, 05:33 AM
great job.
thanks for your sharing.
i will do follow