diff --git a/partials/landingpages/modules/setup.php b/partials/landingpages/modules/setup.php index acb2c59..043f572 100644 --- a/partials/landingpages/modules/setup.php +++ b/partials/landingpages/modules/setup.php @@ -39,10 +39,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { continue; } $type = (string)($field['type'] ?? 'text'); - $value = $_POST[$name] ?? null; + $postKey = str_replace('.', '_', $name); + $value = $_POST[$postKey] ?? null; if ($type === 'checkbox') { - $value = isset($_POST[$name]) ? '1' : '0'; + $value = isset($_POST[$postKey]) ? '1' : '0'; } if (is_array($value)) { continue;