PHP Programming 101

April 5th, 2008

The Client side and Server Side Validation (2/3)

Posted by Edi in PHP


However, the Client side Validation also has disadvantages. One of the main drawbacks is that client-side support for scripting languages varies, with some browsers supporting scripts very well, others supporting bits and pieces, and others supporting nothing at all. In addition to this, cunning users can disable the client-side checking in order to feed the system with bad data -One who is solely reliant on the Client-side checking, is more prone to attacks from hackers

Most client-side validations are completed using the special “onSubmit” event of a form, which grants one to run JavaScript code to handle form validation when the visitor attempts to submit the form. If the return is different from the code in onSubmit, web browsers will not continue on with submitting the form, this allows the prompting visitors to correct any errors before submission.

To be Continued…

Comments are closed.

Sorry, the comment form is closed at this time.

Bad Behavior has blocked 39 access attempts in the last 7 days.