X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/06ec4ba10585fef2bc42a70a099e6c619ae41f87..6e59f47d1baf9e3d420b4a368dcc005d54b6e599:/WEB-INF/lib/form/Hidden.class.php diff --git a/WEB-INF/lib/form/Hidden.class.php b/WEB-INF/lib/form/Hidden.class.php index 84837467..0105de15 100644 --- a/WEB-INF/lib/form/Hidden.class.php +++ b/WEB-INF/lib/form/Hidden.class.php @@ -34,16 +34,16 @@ class Hidden extends FormElement { function __construct($name,$value="") { - $this->mName = $name; + $this->name = $name; $this->mValue = $value; } function toStringControl() { - if ($this->mId=="") $this->mId = $this->mName; + if ($this->id=="") $this->id = $this->name; $html = "\n\tmName\" id=\"$this->mId\""; + $html .= " type=\"hidden\" name=\"$this->name\" id=\"$this->id\""; $html .= " value=\"".$this->getValue()."\""; $html .= ">";