NavigationUser login |
Input ValidationSubmitted by Pavlos Skoufis on Tue, 2006-09-26 23:11.
In order to ensure that the data are entered in the system in the correct format, basic input validating mechanisms have been set up both programmatically and on the schema design of both the OpenLDAP directory and the MySQL-based ordering system. The most important form which a user must fill-in is the customer registration form. It is essential that the data must be validated to ensure that the corresponding queries are executed successfully. The processing form of this form, is providing basic input validation functionality which notifies the user if a field was left blank. PHP was used to validate input because some browsers have disabled Javascript and may be able to circumvent Javascript-based input validation. The input is checked for null values and the visitor is prompted with a message according to the form field that was left blank. The script also checks the length of the username and password fields and does not allow any of them to be less than six characters long. Input validation is performed on the server side, due to my fluency in PHP, while it could also be done using Javascript on the Client-side. More analysis and code on this issue will be included here as time permits. Reply |
LDAP Related Books |