コード例 #1
0
ファイル: index.20140314.php プロジェクト: pvidali/BCSR-forms
 $post_msg = "";
 fixFormatting($postArray);
 foreach ($postArray as $k => $v) {
     ${$k} = $v;
 }
 if (isset($_REQUEST['country']) && $_REQUEST['country'] != "") {
     $country = $_REQUEST['country'];
 } else {
     // THIS HACK IS UNTIL NON-US COUNTRIES ARE DIVIDED INTO MORE THAN ONE RECRUITER, FOR NOW THEY ARE ALL ONE, SO JUST PASS SOMETHING IN
     $country = "OUTSIDE_US";
 }
 if (isset($stateval) && $stateval != "") {
     $state = $stateval;
 }
 if (!($zip == "" && $state == "" && $country == "")) {
     $cinfo = get_recruiter($zip, $state, $country, $db);
     if (!$cinfo) {
         echo "No location.";
     } else {
         $territoryInfo = $cinfo;
     }
 }
 $redir = $territoryInfo['redir'];
 $fields_recruiter = $territoryInfo['fields_recruiter'];
 //	$redirStr = $territoryInfo['redirStr'];
 $doRedir = $territoryInfo['doRedir'];
 $recruiter_email_handle = $territoryInfo['recruiter_email_handle'];
 $redirStr = "http://www.simons-rock.edu/admission/thankyou/?email={$email}&couns={$fields_recruiter}";
 $dup_flag = dupCheck($db, $email, $fname, $lname, $zip);
 //	}
 include $_SERVER['DOCUMENT_ROOT'] . "/includes/iw-curl.php";
コード例 #2
0
ファイル: index.php プロジェクト: pvidali/BCSR-forms
}
// $territoryInfo = get_recruiter($zip,$state,$country,$db);
//print_r($territoryInfo);
//exit();
//$redir = $territoryInfo['redir'];
//$fields_recruiter = $territoryInfo['fields_recruiter'];
//$redirStr = $territoryInfo['redirStr'];
//$doRedir = $territoryInfo['doRedir'];
//$recruiter_email_handle = $territoryInfo['recruiter_email_handle'];
if ($state == "not applicable") {
    $state = "";
} else {
    //	$state = $postArray['state'];
}
if (isset($_POST['submit'])) {
    $territoryInfo = get_recruiter($zip, $state, $country, $db);
    //	print_r($territoryInfo);
    //	exit();
    $postArray = $_POST;
    $post_msg = "";
    fixFormatting($postArray);
    foreach ($postArray as $k => $v) {
        ${$k} = $v;
    }
    // 	include $_SERVER['DOCUMENT_ROOT']."/includes/iw-curl2.php";
    $thankyou = true;
}
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->