diff --git a/form/form.php b/form/form.php index 65c48cc..1057862 100644 --- a/form/form.php +++ b/form/form.php @@ -4,6 +4,7 @@ { protected $name; + private $upload=false; private $method; private $action=null; @@ -51,6 +52,11 @@ $this->style_class=$s; } + public function set_upload() + { + $this->upload=true; + } + public function set_panel_title($pt,$ps) { $this->panel_title=$pt; @@ -86,8 +92,9 @@
'; } - echo '
upload)echo 'enctype="multipart/form-data" '; if($this->action !=null)echo 'action="' .$this->action .'" '; if($this->style_class !=null)echo 'class="' .$this->style_class .'">';