Do not set a value="" on checkbox fields.

This commit is contained in:
Scott Ullrich 2005-01-22 22:13:31 +00:00
parent 709133671e
commit 6778d4524f

View File

@ -142,6 +142,7 @@ include("fbegin.inc");
// simply loop through all field names looking for posted
// values matching the fieldnames. if found, save to package
// configuration area.
$fieldname = $fields['fieldname'];
$fieldvalue = $_POST[$fieldname];
$toeval = "\$pkgarr['" . $fieldname . "'] = \"" . $fieldvalue . "\";";
@ -252,7 +253,7 @@ $config = $config_tmp;
echo "</select>\n";
echo "<br>" . fixup_string($pkga['description']) . "\n";
} else if($pkga['type'] == "checkbox") {
echo "<input type='checkbox' name='" . $pkga['fieldname'] . "' value='" . $value . "'>\n";
echo "<input type='checkbox' name='" . $pkga['fieldname'] . "'>\n";
echo "<br>" . fixup_string($pkga['description']) . "\n";
} else if($pkga['type'] == "textarea") {
if($pkga['rows']) $rows = " rows='" . $pkga['rows'] . "' ";