diff --git a/form.php b/form.php index 91bd0f4..d8831c4 100644 --- a/form.php +++ b/form.php @@ -502,7 +502,9 @@ class formfield $res .= " "; if (isset ($this->help)) - $res .= "".$this->help."
"; + $res .= "".$this->help.""; + if (isset ($this->help) && isset ($this->errors)) + $res .= "
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -586,7 +588,9 @@ class formfield $res .= " "; if (isset ($this->help)) - $res .= "".$this->help."
"; + $res .= "".$this->help.""; + if (isset ($this->help) && isset ($this->errors)) + $res .= "
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -661,7 +665,9 @@ class formfield $res .= " "; if (isset ($this->help)) - $res .= "".$this->help."
"; + $res .= "".$this->help.""; + if (isset ($this->help) && isset ($this->errors)) + $res .= "
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -763,7 +769,9 @@ class formfield $res .= " "; if (isset ($this->help)) - $res .= "".$this->help."
"; + $res .= "".$this->help.""; + if (isset ($this->help) && isset ($this->errors)) + $res .= "
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -867,7 +875,9 @@ class formfield $res .= " "; if (isset ($this->help)) - $res .= "".$this->help."
"; + $res .= "".$this->help.""; + if (isset ($this->help) && isset ($this->errors)) + $res .= "
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -932,7 +942,9 @@ class formfield $res .= " "; if (isset ($this->help)) - $res .= "".$this->help."
"; + $res .= "".$this->help.""; + if (isset ($this->help) && isset ($this->errors)) + $res .= "
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; }