输出一个HTML文本区域

函数 zen_draw_textarea_field($name, $width, $height, $text = ‘~~#’, $parameters = ‘’, $reinsert_value = true)主要功能是输出一个文本区域。
参数解释:
$name:该文本区域的名字,就是<textarea name="“ 的属性值。
$width:该文本区域的列数,即:cols的属性值。
$height:该文本区域的行数,即:rows的属性值。
$text:这个参数好像没有什么用,他主要放在这里。
$parameters:其他属性值。如:class,id…等
$reinsert_value:没有用到该参数 function zen_draw_textarea_field($name, $width, $height, $text = '~*~*#', $parameters = '', $reinsert_value = true) { $field = '<textarea name="' . zen_output_string($name) . '" cols="' . zen_output_string($width) . '" rows="' . zen_output_string($height) . '"'; if (zen_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ($text == '~*~*#' && (isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= stripslashes($GLOBALS[$name]); } elseif ($text != '~*~*#' && zen_not_null($text)) { $field .= $text; } $field .= '</textarea>'; return $field; }