Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

why validate client side and server side

Posted on 2012-03-24
3
Medium Priority
?
517 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
3 Comments
 
LVL 21

Accepted Solution

by:
Dale Burrell earned 2000 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 84

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

Independent Software Vendors: 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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
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…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

972 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