This commit is contained in:
Flatlogic Bot 2025-10-17 10:03:02 +00:00
parent b9f0c9ea5a
commit 16c40428e5
3 changed files with 2 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -44,7 +44,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
$how_did_you_hear = filter_input(INPUT_POST, 'how_did_you_hear', FILTER_SANITIZE_STRING);
$password = filter_input(INPUT_POST, 'password', FILTER_UNSAFE_RAW);
$confirm_password = filter_input(INPUT_POST, 'confirm_password', FILTER_UNSAFE_RAW);
$consent = filter_input(INPUT_POST, 'consent', FILTER_VALIDATE_BOOLEAN);
$timezone = filter_input(INPUT_POST, 'timezone', FILTER_SANITIZE_STRING);
// Tracking data
@ -64,8 +63,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
exit;
}
if (!$consent || !$webinar) {
$response['error'] = 'Please agree to the terms.';
if (!$webinar) {
$response['error'] = 'Webinar not found.';
echo json_encode($response);
exit;
}
@ -214,12 +213,6 @@ if (!$webinar) {
<label for="confirm_password">Confirm Password</label>
<input type="password" id="confirm_password" name="confirm_password" required>
</div>
<div class="form-group consent-group">
<input type="checkbox" id="consent" name="consent" required>
<label for="consent">I agree to receive info about this webinar.</label>
</div>
<p class="microcopy" style="margin-top:-1rem; margin-bottom: 1.5rem;">No spam. Unsubscribe anytime.</p>
<input type="hidden" name="webinar_id" value="<?= $webinar_id ?>">
<input type="hidden" name="timezone" id="timezone">
<input type="hidden" name="utm_source" id="utm_source">