I am attempteing to modify the login I found at roscripts.com to accomodate my needs.
I got it to work fine by validating individually for each error and displaying a message.
the mootools and the javascript are working fine, I am having issues with my php code.
I would like to simplify and streamline the process so I put all the validations in functions and am adding the error messages to an array.
I then test if it has any errors and list them if any are present, but for some reason It does not function.
I am trying to implement this into a class I am working on so any help is appriciated
working version <- very clutered and not practical
php code
new version <- not cluttered and more streamlined, easier to update
php code
Last edited by stickybomb; 10-03-2007 at 03:05 PM..
|