3333
This commit is contained in:
parent
b9f0c9ea5a
commit
16c40428e5
BIN
assets/pasted-20251017-095855-e8ae3c6d.jpg
Normal file
BIN
assets/pasted-20251017-095855-e8ae3c6d.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
BIN
assets/vm-shot-2025-10-17T09-58-48-783Z.jpg
Normal file
BIN
assets/vm-shot-2025-10-17T09-58-48-783Z.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
11
register.php
11
register.php
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user