Validation
Moderator: General Moderators
Validation
Again on the guestbook am working for i would like to make a validation for it, especially for the user name and the email input, pls somebody help. coz i have tried a few scripts but all invain 
It depends on what type of validation really. For simple stuff like checking usernames have no spaces or 'funny' characters then the ctype functions cover most cases.
Validating email addresses can range from a few lines to scripts 100's of lines long.
If you want to check a username isn't taken then you're into database queries etc to validate.
Validating email addresses can range from a few lines to scripts 100's of lines long.
If you want to check a username isn't taken then you're into database queries etc to validate.