<?php

require_once "./include/fgcontactform.php";
$formproc = new FGContactForm();
$formproc->SetFromAddress('*****@*****.**');
$formproc->AddRecipient('*****@*****.**');
//email to receive
$formproc->SetFormRandomKey('CnRrspl1FyEylUj');
if (isset($_POST['submitted'])) {
    if ($formproc->ProcessForm()) {
        unset($_SESSION["captchaVal"]);
        echo '<script>alert("Email has been sent!"); window.location = "http://yunified.com";</script>';
        //$formproc->RedirectToURL("http://www.yunified.com?send=1");
    }
}
?>
<!doctype html>
<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=0"/>
        <meta charset="utf-8">
        <title>Contact | [yunified]</title>
        <script src="js/jquery.js"></script>
        <script src="js/mini_slider.js"></script>
	<script type='text/javascript' src='js/h5validate.js'></script>
        <link rel="stylesheet" type="text/css" href="css/style.css">
        <link rel="stylesheet" type="text/css" href="css/css.css">
        <link href="favicon.ico" type="image/x-icon" rel="icon">
        <link href="favicon.ico" type="image/x-icon" rel="shortcut icon">
    </head>