Well this thread is not really asking for a complete script from anyone of you, Id love to hear what you'd approach a problem like this one though since I do not have any clues. I have a registration script in which the user enters form fields such as username, password(and reenter the password again in next line), email address, birthday. The Registration validator is supposed to check for user's input and generates error message if one field is entered incorrectly or improperly.
I heard that Observer pattern can be used for validator type classes, I've also found some examples from devshed.com. I do understand how the example works, but still cannot design my own validator class(es) with the techniques posted on devshed.com. Can anyone of you please give me some clues on how I should start to approach this problem and resolve it step by step? Again like I said I wouldnt ask for a complete script, although Id appreciate illustration by a few lines of sample code. Thank you.
Lord Yggdrasill