Solved

How to  avoid evil-minded form replies

Posted on 2014-03-24
8
197 Views
Last Modified: 2014-03-25
I have got a from where people can apply for membership in a club. Everyday I receive applications from sort of evil-minded people like
first name: WcrLMrJnxLwOl
family name: pJFxPjSDRprMN
address: TJnxLowhiGDdwZiywPr
The responses don't make sense, not even in my native language.
Is there a way to filter so only seemingly sensible replies go through? Sensible values are western European names.
I have tried jQuery validator:
<script>
jQuery.validator.addMethod("lettersonly", function(value, element)
{
	return this.optional(element) || /^[A-ZÅÖÄa-zåäö-]+$/i.test(value);
},
"Endast bokstäver");
$().ready(function() {
	// validate signup form on keyup and submit
	$("#signupForm").validate({
		rules: {
			fornamn: {required:true,lettersonly:true},
			efternamn: {required:true,lettersonly:true},
			adress: "required",
			postnr: {required:true,number:true},
			ort: {required:true,lettersonly:true},
			telnr: {required:true,number:true},
			mailadress: {required: true,email: true},
			stadgar: "required"
		},
		messages: {
			postnr: "&nbsp;&nbsp;<span style=\"color:#800000;\">Ange siffror utan mellanslag</span>",
			telnr: "&nbsp;&nbsp;<span style=\"color:#800000;\">Ange siffror utan mellanslag</span>",
			mailadress: "&nbsp;&nbsp;<span style=\"color:#800000;\">Glöm inte ange din e-postadress!</span>",
			stadgar: "&nbsp;&nbsp;<span style=\"color:#800000;\">Läs stadgarna och godkänn dem</span>&nbsp;"
		}
	});
});
</script>

Open in new window

but the configuration I use doesn't stop people from sending me garbage.
Please help!
0
Comment
Question by:lericson
  • 4
  • 2
8 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 39951137
Those look like automated attempts. Do you use Captcha or similar to verify the people applying are actual people?
0
 

Author Comment

by:lericson
ID: 39951150
Dan,
Thanks for your reply.
No I am not using Captcha. I will.
I'll accept this answer and try captcha. If the garbage is of other oriigin, I'll return.
For now, thanks!
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39951160
Glad I could help!

FWIW, I am familiar with those types of random submits and have been able to get rid of them using Captcha. A human won't bother typing in small and caps char.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:lericson
ID: 39951181
Trust you!

Am working on it.
0
 

Author Comment

by:lericson
ID: 39951870
??
0
 

Author Comment

by:lericson
ID: 39952777
Thanks, padas!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

786 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