<?
require_once 'idform.class.php';
$form= new IDForm();
//complete form
$form->Header('form1','index.php');
$form->Input('input1','text',array('value'=>'some text here','size'=>50));
$form->AddHtml('<br />');
$form->Input('input2','text',array('value'=>'some text here','size'=>50));
$form->AddHtml('<br />');
$form->Select('select1',
array(
array('value'=>'1','text'=>'option 1'),
array('value'=>'2','text'=>'option 2','selected'),
array('value'=>'3','text'=>'option 3')
)
);
$form->AddHtml('<br />');
$form->TextArea('textarea1','f****** big text =)',array('cols'=>40,'rows'=>5));
$form->AddHtml('<br />');
$form->Input('submit','submit',array('value'=>'Submit form'));
$form->Input('reset','reset',array('value'=>'Reset form'));
$form->Finish();
//===
echo $form->GetHtml();
?>
|