Example #1
0
        if (isset($postArray['comment']) && $postArray['comment'] != "") {
            $formStr .= "comment=" . $postArray['comment'];
            $formStr .= "&";
        }
        $formStr .= "Contacts_685000000110319=" . $postArray['Contacts_685000000110319'];
        $formStr .= "&";
        $formStr .= "Contacts_685000000003013=" . $postArray['Contacts_685000000003013'];
        $formStr .= "&";
        $formStr .= "Contacts_685000000156005=" . $postArray['Contacts_685000000156005'];
        $formFrame = "<iframe src=\"//forms.simons-rock.edu/admission/iw-pace/iw-short.php?{$formStr}\" width=\"0\" height=\"0\" style=\"border: 0\"></iframe>";
    }
    echo $formFrame;
}
if ($thankyouDisplay == "") {
    //	$territoryInfo = getTerritoryInfo($_POST['state'],$territories);
    $territoryInfo = getTerritoryInfoDB($state, $country, $db);
    $fields_recruiter = $territoryInfo['fields_recruiter'];
    $doRedir = $territoryInfo['doRedir'];
    // HEADS UP THIS IS A MAJOR HACK... We are giving all NY and PA to Joel for this formn, since we only get state and not the futher area breakdown
    if ($_POST['state'] == "NY" || $_POST['state'] == "PA") {
        $redir = "joel-pitt";
        $fields_recruiter = "pitt";
        $recruiter_email_handle = "*****@*****.**";
    }
    // SIMILAR HACK... These countries are steve's, whereas the absence of a state has been defaulting to Leslie
    if ($_POST['country'] == "INDIA" || $_POST['country'] == "PAKISTAN" || $_POST['country'] == "BANGLADESH") {
        $redir = "coleman";
        $fields_recruiter = "coleman";
        $recruiter_email_handle = "*****@*****.**";
    }
    //	$redirStr = "http://www.simons-rock.edu/admission/thankyou/?email=$email&couns=$fields_recruiter";
Example #2
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/form-functions.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/DB.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/define-connect.php";
// require_once $_SERVER['DOCUMENT_ROOT']."/classes/test.php";
$db = new DB(HOST, USER, PASSWORD, DATABASE);
$db->connect();
$state = $_REQUEST['state'];
$counsInfo = getTerritoryInfoDB($state, '', $db);
print_r($counsInfo);