I believe that each PHP programmer knows PEAR, and Pear :: HTML_QUICKFORM is a very useful class library in PEAR, which allows you to dynamically create, verify, and display the HTML form.
The main features are as follows:
* You can create 20 common forms; * Generate compatibility XHTML code * Provide powerful and scalable form validation * Automated server-side authentication and filtering * can generate client authentication code (JavaScript). * Support for file upload function * Support Custom Form Display Method * Support multiple template engines such as ITX, Sigma, Flexy, Smarty, etc. * Access to custom form elements, verification rules, and display rules.
See http://pear.php.net