Hi Cmarek,
But still that is not the most reliable way of validation, as one can Disable Javascript on his browser and cannot still get that work. It is always better to do a SERVER-SIDE Validation, just to get rid of such restrictions.
Post the values from form to the server >> request the submitted values from the server >> Do all your validations now >> Display appropriate error messages beside the Form Fields using different color for whichever didnot pass through the validation >> Ask the user to fill them again for all that went wrong >> finally let the user post the data that satisfies your conditions.
This is little slow as one has to post/request to/from server, but reliable way of validating things, though on a client-side validation one can disable that as in case of javascript.
Hope that helps.
Cheers!
_________________________
- Vijay G
Strive for Perfection
|