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

x
?
Solved

How to  avoid evil-minded form replies

Posted on 2014-03-24
8
Medium Priority
?
201 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
[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
  • 4
  • 2
8 Comments
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 2000 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 35

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
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 and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

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