Use the PEAR HTML/Quickform module. It's a standard addon to PHP and can both validate server-side and generate Javascript to validate on the client. The documentation sucks, but you come to expect that with PEAR modules. There's a good intro linked below.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.