class = 'Submit'; $this->name = $name; } function getHtml() { if (empty($this->id)) $this->id = $this->name; // Output HTML. $html = "\n\tname\" id=\"$this->id\""; $html .= " value=\"$this->value\""; if ($this->on_click) $html .= " onclick=\"".$this->on_click."\""; if (!$this->isEnabled()) $html .= " disabled"; $html .= ">"; return $html; } }