01.<?php
02.//PFBC 2.x PHP 5 >= 5.3
03.session_start();
04.include($_SERVER["DOCUMENT_ROOT"] . "/PFBC/Form.php");
05.$form new PFBC\Form("GettingStarted");
06.$form->addElement(new PFBC\Element\Textbox("My Textbox:""MyTextbox"));
07.$form->addElement(new PFBC\Element\Select("My Select:""MySelect"array(
08."Option #1",
09."Option #2",
10."Option #3"
11.)));
12.$form->addElement(new PFBC\Element\Button);
13.$form->render();
14. 
15.//PFBC 2.x PHP 5
16.session_start();
17.include($_SERVER["DOCUMENT_ROOT"] . "/PFBC/Form.php");
18.$form new Form("GettingStarted");
19.$form->addElement(new Element_Textbox("My Textbox:""MyTextbox"));
20.$form->addElement(new Element_Select("My Select:""MySelect"array(
21."Option #1",
22."Option #2",
23."Option #3"
24.)));
25.$form->addElement(new Element_Button);
26.$form->render();
27.?>
創作者介紹
創作者 shadow 的頭像
shadow

資訊園

shadow 發表在 痞客邦 留言(0) 人氣()