Solved

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

Posted on 2008-09-30
3
185 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
How can MDaemon MRK files and MSG files work together? We can also say that, how worldclient and Outlook connecter works, using both application collectively you can view your mails, contacts, calendar, task, notes. In this article you can unders…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

803 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