Fixes for use enctype in forms

This commit is contained in:
Antonio de la Rosa 2015-09-09 05:10:30 +02:00
parent c423cb0b9c
commit f5d9fbd308
4 changed files with 24 additions and 0 deletions

View file

@ -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;

View file

@ -16,6 +16,7 @@ class FileForm extends BaseForm{
parent::__construct($name, $value);
$this->type='file';
$this->enctype=1;
}