Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-09-30
3
Medium Priority
?
191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 2000 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

Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

719 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