asd
This commit is contained in:
@@ -39,10 +39,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$type = (string)($field['type'] ?? 'text');
|
$type = (string)($field['type'] ?? 'text');
|
||||||
$value = $_POST[$name] ?? null;
|
$postKey = str_replace('.', '_', $name);
|
||||||
|
$value = $_POST[$postKey] ?? null;
|
||||||
|
|
||||||
if ($type === 'checkbox') {
|
if ($type === 'checkbox') {
|
||||||
$value = isset($_POST[$name]) ? '1' : '0';
|
$value = isset($_POST[$postKey]) ? '1' : '0';
|
||||||
}
|
}
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user