Solved

Web forms for feedback sent to emails to prevent spam

Posted on 2010-11-18
7
463 Views
Last Modified: 2013-12-25
Ok. I want a simply feedback form to replace the current contact us with email links that are currently set up. I suppose there are two ways of doing this. One would be to have the web form sent to our email. Another would be to have the feedback forms stored and viewable to us without going directly to our email. Assuming, I want the web form to go to my email but not have the email be viewable to the public, how would I do this? This would be embedded as html within a cgi script.
0
Comment
Question by:libertyforall2
  • 4
  • 2
7 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34169999
FormMail http://www.scriptarchive.com/formmail.html has been used for years to do that.  There are links to improved version at the bottom of the page.
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 34170163
You would be better to do it in PHP, since the PHP email function is SO simple compared to CGI -- I struggled with CGI and Matt's FormMail for several sites, and even the improved versions are a hassle to adapt and change.  With PHP it is so simple, so logical, and so much more secure.

I ended up redoing all my form mail scripts from early sites with PHP, dumping CGI, and have had no problems since.
0
 

Accepted Solution

by:
libertyforall2 earned 0 total points
ID: 34177360
I found a basic script builder for forms and have this below. It is embedded within a larger cgi script. It doesn't seem to work.

print "<div id=MainContent>\n";


print "<form action="/home/vmap/www/cgi-bin/chfeedback.pl" method="post">\n";
print "<table border="0" cellpadding="8" cellspacing="8">\n";
print "<tr><td><label for="tswname">Name</label>:</td><td><input type="text" name="fullname" id="tswname" size="25" /></td></tr>\n";
print "<tr><td><label for="tswemail">Email address</label>:</td><td><input type="text" id="tswemail" name="email" size="25" /></td></tr>\n";
print "<tr>\n";
print "<td colspan="2">\n";
print "<label for="tswcomments">Comments</label><br />\n";
print "<textarea rows="15" cols="45" name="comments" id="tswcomments"></textarea>\n";
print "</td>\n";
print "</tr>\n";
print "<tr>\n";
print "<td align="center" colspan="2">\n";
print "<input type="submit" value="Send Feedback" /><br />\n";
print "Form by <a href="http://www.thesitewizard.com/">thesitewizard.com</a>\n";
print "</td>\n";
print "</tr>\n";
print "</table>\n";
print "</form>\n";


print "<!-- End MainContent -->\n";


0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34177866
I'm confused.  There is nothing there that can't be just plain HTML on the page.  I thought you had the form and were looking for a way to email it.
0
 

Author Comment

by:libertyforall2
ID: 34199275
I want a contact form that can be filled out and emailed when people have questions.
0
 

Author Comment

by:libertyforall2
ID: 34254207
Any ideas?
0
 

Author Closing Comment

by:libertyforall2
ID: 34324521
ok
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question