fixed checkbox options
This commit is contained in:
parent
e79483ca02
commit
545765e372
|
@ -63,8 +63,8 @@ foreach ($opt_keys as $element) {
|
||||||
}
|
}
|
||||||
// checkboxes
|
// checkboxes
|
||||||
elseif ($_SESSION['profile_types'][$element] == "checkbox") {
|
elseif ($_SESSION['profile_types'][$element] == "checkbox") {
|
||||||
if ($_POST[$element] == "checked") $options[$element] = array(true);
|
if ($_POST[$element] == "on") $options[$element] = array('true');
|
||||||
else $options[$element] = array(false);
|
else $options[$element] = array('false');
|
||||||
}
|
}
|
||||||
// dropdownbox
|
// dropdownbox
|
||||||
elseif ($_SESSION['profile_types'][$element] == "select") {
|
elseif ($_SESSION['profile_types'][$element] == "select") {
|
||||||
|
|
Loading…
Reference in New Issue