diff --git a/form.php b/form.php index 2db56bc..e42a942 100644 --- a/form.php +++ b/form.php @@ -199,6 +199,11 @@ class form $field->errors = $errors[$field->name]; else $field->errors = array ("error", $errors[$field->name]); + if ($field->type === "hidden") + { + $field->type = "text"; + $field->readonly = true; + } } $field->titlewidth = $this->titlewidth; $field->fieldwidth = $this->fieldwidth;