Fixes for use enctype in forms
This commit is contained in:
parent
c423cb0b9c
commit
f5d9fbd308
4 changed files with 24 additions and 0 deletions
|
|
@ -19,6 +19,12 @@ class BaseForm {
|
|||
|
||||
public $std_error='';
|
||||
|
||||
/**
|
||||
* A property for add enctype for a form where this field is used
|
||||
*/
|
||||
|
||||
public $enctype=0;
|
||||
|
||||
public function __construct($name, $value)
|
||||
{
|
||||
$this->label=$name;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ class FileForm extends BaseForm{
|
|||
parent::__construct($name, $value);
|
||||
|
||||
$this->type='file';
|
||||
$this->enctype=1;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue