Solved

why validate client side and server side

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
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.…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 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