width: 560px; } /* Use default styles included with the package */ <?php if ('@data_dir@' != '@' . 'data_dir@') { $filename = '@data_dir@/HTML_QuickForm2/quickform.css'; } else { $filename = dirname(dirname(dirname(__FILE__))) . '/data/quickform.css'; } readfile($filename); ?> </style> <title>HTML_QuickForm2 simple controller example</title> </head> <body> <?php echo $form; ?> </body> </html> <?php } } $page = new SimplePage(new HTML_QuickForm2('page1')); $page->addHandler('process', new SimpleProcess()); $page->addHandler('display', new SimpleDisplay()); $controller = new HTML_QuickForm2_Controller('Simple'); $controller->addPage($page); $controller->run();