{\rtf1\ansi\ansicpg1252\cocoartf2867 \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fmodern\fcharset0 Courier;\f1\fswiss\fcharset0 ArialMT;} {\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red0\green0\blue233;} {\*\expandedcolortbl;;\cssrgb\c0\c0\c0;\cssrgb\c0\c0\c93333;} \margl1440\margr1440\vieww50660\viewh24920\viewkind0 \deftab720 \pard\pardeftab720\partightenfactor0 \f0\fs26\fsmilli13333 \cf0 \expnd0\expndtw0\kerning0 \outl0\strokewidth0 \strokec2 'John', 'lastName' => 'Doe', 'birthday' => '1985-03-15', 'email' => 'john@example.com'],\ \'a0 \'a0 // ['firstName' => 'Jane', 'lastName' => 'Smith', 'birthday' => '1992-07-22', 'email' => 'jane@example.com'],\ \'a0 \'a0\ \'a0 \'a0 // \uc0\u8592 \u8592 \u8592 ADD ALL YOUR CLARK COUNTY ASSEMBLY MEMBERS HERE \u8593 \u8593 \u8593 \ ];\ \ // 2. Your election email address\ $toEmail = "elections@thenevadaassemblygov.land";\ \ // ============================================================\ \ // Handle Login\ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['login'])) \{\ \'a0 \'a0 $firstName = strtolower(trim($_POST['firstName']));\ \'a0 \'a0 $lastName \'a0= strtolower(trim($_POST['lastName']));\ \'a0 \'a0 $birthday \'a0= $_POST['birthday'];\ \'a0 \'a0 $email \'a0 \'a0 = strtolower(trim($_POST['email']));\ \'a0 \'a0 $captcha \'a0 = trim($_POST['captcha']);\ \ \'a0 \'a0 // CAPTCHA check\ \'a0 \'a0 if ($captcha !== "13") \{\ \'a0 \'a0 \'a0 \'a0 $loginError = "\uc0\u10060 Incorrect security answer. What is 8 + 5?";\ \'a0 \'a0 \} else \{\ \'a0 \'a0 \'a0 \'a0 // Check against voter database\ \'a0 \'a0 \'a0 \'a0 $found = false;\ \'a0 \'a0 \'a0 \'a0 foreach ($eligibleVoters as $voter) \{\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 if (strtolower($voter['firstName']) === $firstName &&\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 strtolower($voter['lastName']) \'a0=== $lastName &&\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 $voter['birthday'] === $birthday &&\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 strtolower($voter['email']) === $email) \{\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 $_SESSION['loggedIn'] = true;\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 $_SESSION['voter'] = $voter;\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 $found = true;\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 break;\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 \}\ \'a0 \'a0 \'a0 \'a0 \}\ \'a0 \'a0 \'a0 \'a0 if (!$found) \{\ \'a0 \'a0 \'a0 \'a0 \'a0 \'a0 $loginError = "\uc0\u10060 Voter not found. Please check your information or contact the election committee.";\ \'a0 \'a0 \'a0 \'a0 \}\ \'a0 \'a0 \}\ \}\ \ // Handle Vote Submission\ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['submit_vote']) && isset($_SESSION['loggedIn'])) \{\ \'a0 \'a0 $voter = $_SESSION['voter'];\ \'a0 \'a0\ \'a0 \'a0 $votes = [\ \'a0 \'a0 \'a0 \'a0 "Sheriff" \'a0 \'a0 \'a0 \'a0 \'a0=> $_POST['sheriff'] ?? 'ABSTAIN',\ \'a0 \'a0 \'a0 \'a0 "Court Clerk - Dakota Ortiz" => $_POST['courtClerk1'] ?? 'ABSTAIN',\ \'a0 \'a0 \'a0 \'a0 "Court Clerk - Jessica Traylor" => $_POST['courtClerk2'] ?? 'ABSTAIN',\ \'a0 \'a0 \'a0 \'a0 "Bondsman" \'a0 \'a0 \'a0 \'a0 => $_POST['bondsman'] ?? 'ABSTAIN',\ \'a0 \'a0 \'a0 \'a0 "Coroner" \'a0 \'a0 \'a0 \'a0 \'a0=> $_POST['coroner'] ?? 'ABSTAIN',\ \'a0 \'a0 \'a0 \'a0 "Justice of the Peace - Nicholas Cox" => $_POST['jop1'] ?? 'ABSTAIN',\ \'a0 \'a0 \'a0 \'a0 "Justice of the Peace - Rockie Roper" => $_POST['jop2'] ?? 'ABSTAIN',\ \'a0 \'a0 \'a0 \'a0 "County Chairman" \'a0=> $_POST['chairman'] ?? 'ABSTAIN',\ \'a0 \'a0 \'a0 \'a0 "Voter" \'a0 \'a0 \'a0 \'a0 \'a0 \'a0=> $voter['firstName'] . " " . $voter['lastName'],\ \'a0 \'a0 \'a0 \'a0 "Email" \'a0 \'a0 \'a0 \'a0 \'a0 \'a0=> $voter['email'],\ \'a0 \'a0 \'a0 \'a0 "Timestamp" \'a0 \'a0 \'a0 \'a0=> date('Y-m-d H:i:s')\ \'a0 \'a0 ];\ \ \'a0 \'a0 // Build email message\ \'a0 \'a0 $subject = "2026 Clark County Assembly Ballot - " . $voter['firstName'] . " " . $voter['lastName'];\ \'a0 \'a0 $message = "New ballot submitted!\\n\\n";\ \'a0 \'a0 foreach ($votes as $key => $value) \{\ \'a0 \'a0 \'a0 \'a0 $message .= $key . ": " . $value . "\\n";\ \'a0 \'a0 \}\ \ \'a0 \'a0 $headers = "From: no-reply@yourdomain.com\\r\\n";\ \'a0 \'a0 $headers .= "Reply-To: " . $voter['email'] . "\\r\\n";\ \'a0 \'a0 $headers .= "Content-Type: text/plain; charset=UTF-8\\r\\n";\ \ \'a0 \'a0 if (mail($toEmail, $subject, $message, $headers)) \{\ \'a0 \'a0 \'a0 \'a0 $voteSuccess\ \f1\fs28 \strokec2 \ \ \ Sent with {\field{\*\fldinst{HYPERLINK "https://proton.me/mail/home"}}{\fldrslt \cf3 \ul \ulc3 \strokec3 Proton Mail}} secure email.\ }