Originally Posted by Fou-Lu
It would replace everything you have.
Put it in a file of its own then take a copy of the original form and point the action to this script instead. This would let you test it with various good and bad input parameters.
Beyond this point you would check to see if the $aErrorMessages is empty. If it is, validation passed the input values and you can continue processing. Otherwise it failed, and you can show the error messages in the $aErrorMessages array.
With my obvoiusly "superb" skills in php I have added
to the bottom of your code and is has given me the response "Array"
I've had a problem with something like this before and it had something to do with how my functions were held or something... I wish I had more time to stud this so I wouldn't have to request much assistance, but I guess I have to start somewhere.
Anyway, thank you for helping me with this! I really appreciate it and hope to get this functioning soon