...

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



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

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:

comments:

Exactly like this web page, but without the dropdown menu options they have:
http://www.kpmg.com/Global/en/Pages/contactus.aspx


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.

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

http://nms-cgi.sourceforge.net/scripts.shtml

bazz

prasanthmj
04-24-2010, 05: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)

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum