if($HTTP_SERVER_VARS["HTTPS"] != "on") { $newurl = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; header("location: $newurl"); } $error = 0; $errormsg = ""; if (isset($_POST['Submit'])) { include ('/var/www/html/includes/_configs/site.config.php'); include ($_CFG['configs-dir'] . 'db.config.php'); include ($_CFG['code-dir'] . 'class.phpmailer.php'); $dbp = db_pri_connect(); $unique = md5(uniqid(mt_rand())); $fullname = $_POST['firstname'] . ' ' . $_POST['lastname']; $ccname = $_POST['ccname']; $ccexp = $_POST['select'] . '/' . $_POST['select2']; $ccvals = array($_POST['cc'], $fullname, $ccexp, $_POST['cctype'], $unique); $sql = "insert into nysja_cardinfo (number,name,exp,type,uniqueid) VALUES (?,?,?,?,?)"; $sqlp = $dbp->prepare($sql); $res = $dbp->execute($sqlp, $ccvals); $totalTables = $_POST['tables'] * 35; $totalTickets = $_POST['tickets'] * 45; $overall = $totalTables + $totalTickets; if (DB::isError($res)) { $error++; $errormsg = "
There was a problem submitting your information. Please contact us by phone to pay your dues.
"; $errormsg .= $res->getDebugInfo(); } $dbp->disconnect(); $mail = new PHPMailer(); $mail->addAddress('barbara@newyorkjewelers.org'); $mail->From = "noreply@newyorkjewelers.org"; $mail->FromName = "NYSJA Web Site"; $mail->Subject = "Event Registration"; $mail->isHTML(false); $thebody =<<to Help Turn Things Around
| When: | New York City/Westchester Area 6:30 PM Meet and Greet
|
| Where: | TBD
|
| Register: | Online: Please complete the form below. By Mail: If you'd prefer to print and mail in your registration, please complete our Area Meeting Registration Form (PDF) and return with your payment to:
|
Your path to professionalism begins by joining the NYSJA today!
Benefits include:
The NYSJA is pleased to recognize the following companies and organizations that support our mission:
Get to know your fellow NYSJA members in the new Member Forum. Ask questions, get answers, share resources, and more!