function __construct($action = null) { parent::__construct('form'); $this->method = 'post'; $this->enctype = 'multipart/form-data'; if (!is_null($action)) { $this->action = $action; } }