Solved

why validate client side and server side

Posted on 2012-03-24
3
507 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

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!

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

734 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