Solved

Web forms for feedback sent to emails to prevent spam

Posted on 2010-11-18
7
458 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 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
Comment Utility
I want a contact form that can be filled out and emailed when people have questions.
0
 

Author Comment

by:libertyforall2
Comment Utility
Any ideas?
0
 

Author Closing Comment

by:libertyforall2
Comment Utility
ok
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
DNS, website, godaddy 6 41
Combine DSQuery result into loop script 6 37
HTML page and JavaScript 2 49
C3-->D3 Line Chart 4 17
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now