import('form.FormElement');
class Hidden extends FormElement {
- var $mValue;
var $cClassName = "Hidden";
- function Hidden($name,$value="")
+ function __construct($name,$value="")
{
- $this->mName = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
function toStringControl() {
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input";
- $html .= " type=\"hidden\" name=\"$this->mName\" id=\"$this->mId\"";
+ $html .= " type=\"hidden\" name=\"$this->name\" id=\"$this->id\"";
$html .= " value=\"".$this->getValue()."\"";
$html .= ">";