diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-06-15 19:06:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-06-15 19:06:25 +0000 |
commit | eb030cb9d8839bd08cb2bd1e4f954efe37047303 (patch) | |
tree | dcd7f9e913cbf5707208bfc36376e38632eb05c8 /includes/common.inc | |
parent | a0e0ea93371646a28c3dc71b0b077035ab6569d6 (diff) | |
download | brdo-eb030cb9d8839bd08cb2bd1e4f954efe37047303.tar.gz brdo-eb030cb9d8839bd08cb2bd1e4f954efe37047303.tar.bz2 |
- Improvements: XHTML-ifications. Patch by GmbH.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index 1e4c249a7..228e6d339 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -808,7 +808,7 @@ function form($form, $method = "post", $action = 0, $options = 0) { if (!$action) { $action = request_uri(); } - return "<form action=\"$action\" method=\"$method\"". ($options ? " $options" : "") .">\n$form</form>\n"; + return "<form action=\"$action\" method=\"$method\"". ($options ? " $options" : "") .">\n$form\n</form>\n"; } function form_item($title, $value, $description = 0) { @@ -825,7 +825,7 @@ function form_checkbox($title, $name, $value = 1, $checked = 0, $description = 0 function form_textfield($title, $name, $value, $size, $maxlength, $description = 0) { $size = $size ? " size=\"$size\"" : ""; - return form_item($title, "<input maxlength=\"$maxlength\" class=\"form-text\" name=\"edit[$name]\"$size value=\"". check_form($value) ."\" />", $description); + return form_item($title, "<input type=\"text\" maxlength=\"$maxlength\" class=\"form-text\" name=\"edit[$name]\"$size value=\"". check_form($value) ."\" />", $description); } function form_password($title, $name, $value, $size, $maxlength, $description = 0) { |