March 30th, 2008
The Client side and Server Side Validation (1/3)
Posted by
Edi in
PHP
In validating the input, there are two options:
1)validate on the client side using a scripting language, or
2) validate on the server side using PHP.
The Client side Validation
A scripting code can be written (most commonly JavaScript) that will verify if the form fields
contain good data before being submitted to the server, this method is the most oftenly used.
There are also two advantages in using client-side validation:
A) The users receive feedback faster (no need to go off to the server, process the information, then download another HTML page), and
B) This means that it also saves load on the server – more work is done on the client
To be continued…
Comments Off
