From fad34a61e472b4199dc993410b6e62013075ec9c Mon Sep 17 00:00:00 2001 From: jervfors Date: Sun, 9 May 2004 10:19:50 +0000 Subject: [PATCH] Closing PHP tag and adding some XHTML git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7406 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/forms.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/forms.php b/functions/forms.php index 0d5bfef3..f3efadde 100644 --- a/functions/forms.php +++ b/functions/forms.php @@ -21,7 +21,7 @@ function addInputField($type, $name = null, $value = null, $attributes = '') { return '\n"; + $attributes . " />\n"; } /** @@ -37,7 +37,7 @@ function addPwField($name , $value = null) { */ function addCheckBox($name, $checked = false, $value='') { return addInputField('checkbox', $name, $value, - ($checked ? ' checked' : '')); + ($checked ? ' checked="checked"' : '')); } /** @@ -45,7 +45,7 @@ function addCheckBox($name, $checked = false, $value='') { */ function addRadioBox($name, $checked = false, $value='') { return addInputField('radio', $name, $value, - ($checked ? ' checked' : '')); + ($checked ? ' checked="checked"' : '')); } /** @@ -94,7 +94,7 @@ function addSelect($name, $values, $default = null, $usekeys = false) if(!$usekeys) $k = $v; $ret .= '\n"; } $ret .= "\n"; @@ -144,4 +144,4 @@ function addForm($action, $method = 'POST', $name = '', $enctype = '', $charset $enctype . $name . $charset . "\">\n"; } - +?> \ No newline at end of file -- 2.25.1