class = 'PasswordField'; $this->name = $name; } function getHtml() { if ($this->id == '') $this->id = $this->name; $html = "\n\tid.'"'; $html.= ' name="'.$this->name.'"'; if ($this->size != '') $html.= ' size="'.$this->size.'"'; if ($this->style != '') $html.= ' style="'.$this->style.'"'; if ($this->max_length != '') $html.= ' maxlength="'.$this->max_length.'"'; if ($this->on_change != '') $html.= ' onchange="'.$this->on_change.'"'; $html.= ' value="'.htmlspecialchars($this->getValue()).'"'; $html.= '>'; return $html; } }