mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not set a value="" on checkbox fields.
This commit is contained in:
parent
709133671e
commit
6778d4524f
@ -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'] . "' ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user