Solved

why validate client side and server side

Posted on 2012-03-24
3
511 Views
Last Modified: 2012-03-24
Hi,

I'm just wondering...

I;ve heard it said in videos etc that you should validate input client side and server side.

Why do we need to validate twice?
0
Comment
Question by:scm0sml
[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
3 Comments
 
LVL 21

Accepted Solution

by:
Dale Burrell earned 500 total points
ID: 37760203
You validate on the server side because that is the only validation you can guarantee (if javascript is turned off client side validation won't run). And you validate client side (where you can) because its faster and provides a better user experience.
0
 

Author Closing Comment

by:scm0sml
ID: 37760684
Makes sense....
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37761234
Javascript validation helps get forms filled out correctly by alerting the users to problems.  However, spammers will collect your form info and then bypass your form and submit directly to your 'action' page with curl or other programs.  You have to have server side validation to keep them out.
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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

628 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