Solved

prevent blank emails being sent from online form

Posted on 2013-11-21
7
181 Views
Last Modified: 2013-11-23
i have setup form validation using jquery and it works and wont let someone submit the form without entering in some required fields. but we still get some emails that are totally blank. i also encrypted the form using web form spam protection cause we were getting spam emailed through the form, the encrytpion stopped the spam, but we started getting blanks a couple months ago. i setup robots.txt to disallow the html and asp pages also so crawlers arent supposed to be able to access the pages...what is happening? i dont understand why some blank emails are still being sent from the online form...thanks
0
Comment
Question by:CCLCLS
  • 4
  • 3
7 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39665919
jQuery validation is no use if you are not also checking server side if the contact form is filled in.
It takes a few seconds to disable javascript in a browser and circumvent your checks similarly webbots do not execute javascript so they can submit a form no problem.
0
 

Author Comment

by:CCLCLS
ID: 39666004
so how do i do the server side check?
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39666029
Check if the form fields are empty before processing. Same thing you do on the client side but you also do on the server side when the form is posted.

if request.form("email")="" then
' do nothing

etc
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:CCLCLS
ID: 39666113
ok i entered the code as you describe. i will ait to see if anymore blanks are sent. ususally a few every day.
0
 

Author Comment

by:CCLCLS
ID: 39666120
how come the disallow line in the robots.txt didnt work? some bots dont follow the rules?
0
 
LVL 58

Expert Comment

by:Gary
ID: 39666143
Google et al will respect your robots, but for every good bot there are another 10 that are bad bots.
0
 

Author Closing Comment

by:CCLCLS
ID: 39671700
easy quick solution, thank you, no more blank emails but regular emails still working fine...
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

939 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

10 Experts available now in Live!

Get 1:1 Help Now