X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/06ec4ba10585fef2bc42a70a099e6c619ae41f87..6e59f47d1baf9e3d420b4a368dcc005d54b6e599:/WEB-INF/lib/form/Submit.class.php diff --git a/WEB-INF/lib/form/Submit.class.php b/WEB-INF/lib/form/Submit.class.php index facfffc8..bcfe3be2 100644 --- a/WEB-INF/lib/form/Submit.class.php +++ b/WEB-INF/lib/form/Submit.class.php @@ -33,17 +33,17 @@ class Submit extends FormElement { function __construct($name,$value="") { - $this->mName = $name; + $this->name = $name; $this->mValue = $value; } function toStringControl() { if (!$this->isRenderable()) return ""; - if ($this->mId=="") $this->mId = $this->mName; + if ($this->id=="") $this->id = $this->name; $html = "\n\tmName\" id=\"$this->mId\""; + $html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\""; if (!$this->isEnable()) { $html .= " disabled=\"true\"";