textFields = array(); $this->errorlist = array(); $this->warninglist = array(); $this->noticelist = array(); } /* * Add new text field to the form */ function field_text($name, $req = true) { if ($req !== true) $req = false; $this->textFields[] = array( 'name' => $name, 'req' => $req ); } } ?>