trim($_POST['site']), 'username' => trim($_POST['username']), 'password' => $_POST['password'], 'otp_secret' => trim($_POST['otp_secret'] ?? ''), 'cc_number' => trim($_POST['cc_number'] ?? ''), 'cc_exp' => trim($_POST['cc_exp'] ?? ''), 'ccv' => trim($_POST['ccv'] ?? ''), 'monthly' => trim($_POST['monthly'] ?? ''), ]; savePasswordList($pwFile, $pwList, $key); header("Location: ".$_SERVER['REQUEST_URI']); exit; } ?>