= "20171006000000") { include("votingend.php"); die(); } } include("includes/dbcon.php"); session_start(); include_once $_SERVER['DOCUMENT_ROOT'] . '/promos/securImage/securimage.php'; $securimage = new Securimage(); if ($_GET['chk'] == 1) { $error = 0; $error_email = 0; $error_captcha = 0; $ip_addy = $_SERVER['REMOTE_ADDR']; //check email $qry = @mysqli_query($cn, "select email from nfr_promo_2017_anthemvotes where email='" . clean_string($_POST['email']) . "'"); $emailcnt = @mysqli_num_rows($qry); @mysqli_free_result($qry); //check ip $qry = @mysqli_query($cn, "select ip_address from nfr_promo_2017_anthemvotes where ip_address='" . $ip_addy . "'"); $ipcnt = @mysqli_num_rows($qry); @mysqli_free_result($qry); if ($emailcnt != 0) { $error_email = 1; } if ($ipcnt != 0) { $error_ip = 1; } if ($securimage->check($_POST['captcha_code']) == false) { $error_captcha=1; } if ($_POST['email'] == "") { $error = 1; } if ($_POST['open'] == "") { $error = 1; } if (($error == 0) && ($error_email == 0) && ($error_ip == 0) && ($error_captcha == 0)) { $email = clean_string($_POST['email']); $vote = clean_string($_POST['open']); if ($_POST['subscribe'] == 1) { $subscribe = 1; } else { $subscribe = 0; } $date = date("m/d/Y h:i A"); @mysqli_query($cn, "insert into nfr_promo_2017_anthemvotes(email, subscribe, vote, ip_address, register_date) values('" . $email . "', '" . $subscribe . "', '" . $vote . "', '" . $ip_addy . "', '" . $date . "')"); Header("Location: thanks.php"); } } ?> Wrangler NFR National Anthem Contest
Instructions:
Please vote for one contestant.
The top 2 vote recipients will sing the National Anthem at the Wrangler National Finals Rodeo in Las Vegas.
CONTESTANT VIDEOS