Fix issue where values with spaces are truncated

value needs to be quoted
This commit is contained in:
stevenA 2022-01-28 09:50:40 +01:00
parent 60e973b4a6
commit fb66f0e239

View file

@ -463,7 +463,7 @@ class formcreate
} else {$val_check = "";} } else {$val_check = "";}
} else {$val_check = "";} } else {$val_check = "";}
} }
echo "<input type=radio name= {$res_id} id=${res_id}_{$i} value={$value[@value]} {$val_check} {$opt_hide} {$opt_disabled}>"; echo "<input type=radio name= {$res_id} id=${res_id}_{$i} value='{$value[@value]}' {$val_check} {$opt_hide} {$opt_disabled}>";
echo "<label for= {$res_id}_{$i}>{$value}</label>"; echo "<label for= {$res_id}_{$i}>{$value}</label>";
$i++; $i++;
} }