fixed checkbox options

This commit is contained in:
Roland Gruber 2004-04-04 14:43:12 +00:00
parent e79483ca02
commit 545765e372
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ foreach ($opt_keys as $element) {
}
// checkboxes
elseif ($_SESSION['profile_types'][$element] == "checkbox") {
if ($_POST[$element] == "checked") $options[$element] = array(true);
else $options[$element] = array(false);
if ($_POST[$element] == "on") $options[$element] = array('true');
else $options[$element] = array('false');
}
// dropdownbox
elseif ($_SESSION['profile_types'][$element] == "select") {