Form.PHP
PHP;">
action=$action;
$this->method=$method;
}
function form_start(){
$text="\n";
}
return $text;
}
//文本框函数
function form_text($name,$id,$label_name,$label_for,$value=""){
$text="form_label($label_name,$label_for);
$form_item=$this->form_item($label,$text);
return $form_item;
}
//密码框函数
function form_passwd($name,$value=""){
$text="form_label($label_name,$text);
return $form_item;
}
//隐藏域函数
function form_hidden($name,$value=""){
$text="form_label($label_name,$text);
return $form_item;
}
//文件域函数
function form_file($name,$size=""){
$text="form_label($label_name,$text);
return $form_item;
}
//复选框函数
function form_checkBox($name,$label=array(),$label_for=""){
$i=0;
$text=array();
foreach ($label as $id=>$value){
$text[$i]="";
$text[$i].="