Solved

How do I deal with my FormMail results being corrupted by scripts?

Posted on 2008-09-30
3
186 Views
Last Modified: 2012-05-05
I run a web site that provides information and answers questions vis a FormMail page. For the past week, all of my results are either invaded or corrupted. Instead of getting legitimate questions, I get variations of the following:

*****
Below is the result of your feedback form.  It was submitted by
Scot Mcclure () on Tuesday, September 30, 2008 at 08:26:55
---------------------------------------------------------------------------

Question(s): lcbpy7xhuls31p16
<a href= http://mocfcpf.com >eytygd xgsgjysg</a>
http://yziwwwjxhs.com 
<a href= http://sdturvqkup.com >ziqsj kjkuu</a>
http://bhszkogwf.com 
<a href= http://vtowpl.com >muubdr gvqxlow</a>
http://zbmtmd.com 
<a href= http://xkydvsz.com >iikenc zujyg</a>
http://mexdfky.com 


answer: by email ONLY

from: Craig Boyd

Submit: Submit Question

---------------------------------------------------------------------------
*****

Note that the "submitted by" and "from:" fields do not match - this is characteristic of all results. I have not clicked on any of the "links" and have simply deleted these messages, but they are becoming a problem and now am thinking this requires action. Please advise. Thank you.
0
Comment
Question by:webdrone
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 22612305
I had the same but not since I use recaptcha

http://recaptcha.net/

See it in action: http://plungjan.name/askaquestion.php



0
 

Author Closing Comment

by:webdrone
ID: 31501548
Thank you. I was hoping for a little more elegant solution that I could maybe learn some scripting skills from, but this will work.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 22622100
You can try this (assuming the field should never hold an http):



<form action="goawayrobotsandpeoplenotusingjavascript.html">
<input type="text" name="questions" value="">
<script>
document.write('<input type="button" value="Submit" '+
'onClick="if (this.form.questions.value.indexOf('http')==-1) { this.form.action=\'formmail.php\'; this.form.submit()}">')
</script>
</form>

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Title # Comments Views Activity
Spam Laws/Regulations on service - General thoughts? 4 59
How to verify the email addresses for email blast 6 74
Lines Not Lining Up 2 79
append only to online list 2 46
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Zimbra is famous for its platform independency, ability to manage multiple user accounts, easy assimilation with 3rd party applications, social network certification etc. Here, we discuss about how users can move multiple Zimbra user accounts to Exc…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

829 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