protected function html() { $text = "<form method=\"" . $this->method . "\" action=\"" . $this->action . "\"" . $this->encoding . " name=\"" . $this->name . "\" onSubmit=\"return validate(document." . $this->name . ")\" >"; $text .= parent::html(); return $text . "</form>"; }