//Create Error Logger
        $logger = new Swift_Plugins_Loggers_ArrayLogger();
        $mailer->registerPlugin(new Swift_Plugins_LoggerPlugin($logger));
        $swiftObj = new SwiftMail();
        // ====================================================================================
        // EMAIL TO ADMIN ASSISTANT
        // ====================================================================================
        $subject = "Request for Temp " . ucfirst($response);
        $swift_super = $swiftObj->createHTMLMsg($subject, '*****@*****.**', '*****@*****.**', '', $email_msg);
        //$swift_super = $swiftObj->createHTMLMsg($subject , '*****@*****.**', '*****@*****.**', '', $email_msg);
        //so special characters ( ) do not come out all garbled (weird characters)
        $swift_super->setCharset('UTF-8');
        $num_sent = $mailer->send($swift_super, $failedRecipients);
        $errs = $swiftObj->getErrors($failedRecipients, $num_sent, $logger, $email_msg);
        if ($errs != 0) {
            $swift_errs = $swiftObj->createPlainMsg('temp hire response email error', '*****@*****.**', '*****@*****.**', '', $errs);
            $num_sent2 = $mailer->send($swift_errs, $failedRecipients);
        }
        //MSG FOR SUBMITTER
        Utilities::msg_alert("Form submitted successfully.", "");
        Utilities::go_to("index.php");
    }
    //end spam check
} catch (Exception $e) {
    echo $e->getMessage();
    echo "<br/>";
    exit;
}
?>
  
		/* FORM: validation */
		$("#temp_hire").validate({
			submitHandler: function(form) {
				form.submit();
			}
		});
				
		/* ================================================================================== 
	        MAKE CHECKBOXES, RADIOS & SELECTS READONLY 			
		/* ================================================================================ */
		$(':checkbox[readonly]').click(function(){
            return false;
        });
		$(':checkbox[readonly]:not(:checked)').prop('disabled', true);
        $(':radio[readonly]:not(:checked)').prop('disabled', true);
       
        $('option:not(:selected)').prop('disabled', true);
    </script> 
    
	</body>
</html>
		 
<?php 
} catch (Exception $e) {
    Utilities::msg_alert($e->getMessage(), "");
    Utilities::close();
    //closes window opened by alert
    exit;
}
?>