Pear :: HTML

xiaoxiao2021-03-06  69

Summarize the process of using PEAR :: HTML_QUICKFORM:

1. Make sure the PEAR is installed correctly;

2. Load HTML_QUICKFORM

Require_once ("HTML / QuickForm.php");

3. Create a form object;

$ form = new html_quickform ('frmtest', 'pos');

4. Add Element and Verification Rules (Rules);

5. Design a form processing function (such as Say_Hello ()) in the code;

6. Display a form or perform data verification and processing for existing forms.

At this point, it is set to get started.

Some more advanced features, such as continuing research in conjunction with a Smarty template engine. . . .

转载请注明原文地址:https://www.9cbs.com/read-120167.html

New Post(0)