- $html .= "<td><input type='$this->input_type' name='$form_varname' value='$value'";
- if ($this->input_type == "textarea") {
- if ($this->field_width) $html .= " cols=$this->field_width/";
- if ($this->field_height) $html .= " rows=$this->field_height/";
+ $html .= "<td>";
+ // hack: if input_type is select : user provides the input field verbatim
+ if ( $this->input_type == "select" ) {
+ $html .= $value;
+ } else if ($this->input_type == "textarea") {
+ $html .= "<textarea name='$form_varname'";
+ if ($this->field_width) $html .= " cols=$this->field_width";
+ if ($this->field_height) $html .= " rows=$this->field_height";
+ $html .= ">$value</textarea>";