Solved

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

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

Make managing Office 365 email signatures a breeze

Are you using Office 365? Having trouble trying to set up email signatures for your users? Getting stressed out managing multiple signatures? Need an easier way to manage? We have a solution for you, try the most-user friendly and powerful signature management tool on the market.

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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.
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…

706 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

15 Experts available now in Live!

Get 1:1 Help Now