<?php
// Uncomment for Debugging
// error_reporting(E_ALL);
// ini_set('display_errors', 1);

require_once __DIR__ . '/securimage/securimage.php';

// if not using Composer, must require these before using session
require_once __DIR__ . '/securimage/CaptchaObject.php';
require_once __DIR__ . '/securimage/StorageAdapter/AdapterInterface.php';

session_start(); // this MUST be called prior to any output including whitespaces and line breaks!

// CHANGE TO 0 TO TURN OFF DEBUG MODE
// IN DEBUG MODE, ONLY THE CAPTCHA CODE IS VALIDATED, AND NO EMAIL IS SENT
$GLOBALS['DEBUG_MODE'] = 0;

$GLOBALS['ct_recipient']   = 'sales@franatech.com'; // Kunden E-Mail
$GLOBALS['ct_msg_subject'] = 'Das Kontaktformular wurde auf der Website versendet';
// Test E-Mail, wenn auf dev-server
if($_SERVER['SERVER_NAME'] == "neu.franatech.de") {
  $GLOBALS['ct_recipient']   = 'reuber@spaetemitschwalb.de';
  echo "<strong>DEV-Modus</strong><br>";
  echo "Recipient: " . $GLOBALS['ct_recipient'] . "<br>";
}

?>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if IE 9]>         <html class="no-js lt-ie10"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Franatech - underwater gas monitoring</title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="shortcut icon" href="favicon.ico">
  <link rel="stylesheet" href="css/bootstrap.css">
  <link rel="stylesheet" href="css/validationEngine.jquery.css">
  <link rel="stylesheet" href="css/main.css">
  <script type="text/javascript" src="js/vendor/modernizr-2.6.2.min.js"></script>

  <link rel="stylesheet" href="./securimage/securimage.css" media="screen">
  <style type="text/css">
    div.error {
      display: block;
      color: #f00;
      font-weight: bold;
      font-size: 1.2em;
    }

    span.error {
      display: block;
      color: #f00;
      font-style: italic;
    }

    .success {
      color: #00f;
      font-weight: bold;
      font-size: 1.2em;
    }

    form label {
      display: block;
      font-weight: bold;
    }

    fieldset {
      width: 90%;
    }

    legend {
      font-size: 24px;
    }

    .note {
      font-size: 18px;
    }
  </style>
</head>

<body>
  <!--[if lt IE 7]>
      <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->

  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
<![endif]-->
  <!-- NAVBAR
    ================================================== -->

  <div class="shadow_bg">

    <div class="container-mainnav-bg">
      <div id="header-mainnavi" class="container no-padding">

        <!-- Static navbar -->
        <div class="navbar navbar-default navbar-static-top">
          <div class="container mainnav no-padding">
            <div class="row navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <div class="mainnav-left">
                <div class="navCornerLeft hidden-xs"></div>
                <a class="navbar-brand" href="home.html"></a>
              </div>
            </div>

            <div class="navbar-collapse collapse navbar-right">
              <ul class="nav navbar-nav">
                <li><a href="home.html">Home</a></li>
                <li><a href="presentation.html">Company</a></li>
                <li><a href="case_studies.html">Case Studies</a></li>
                <li><a href="our_users_publish.html">Archive</a></li>
                <li><a href="sensors.html">Products</a></li>
                    <li><a href="eu_project.html">EU-Project</a></li>
                <li class="active"><a class="last" href="enquiry-contact.php">Contact</a></li>
              </ul>
            </div>
            <!--/.nav-collapse -->
            <div class="navCornerRight hidden-xs"></div>
          </div>
        </div>

      </div> <!-- /.container -->
    </div>

  </div><!-- /.wrap -->
  <div class="subBar">
    <div class="position">
      <ul class="subNav">
        <li class="active"><a href="enquiry-contact.php">Enquiry / RMA / Contact</a></li>
        <li><a href="imprint.html">Imprint</a></li>
        <li><a href="privacy_policy.html">Privacy Policy</a></li>
      </ul>
    </div>
  </div>



  <!-- Content Home
    ================================================== -->
  <div class="container general-margin">

    <div class="row">
      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <h2>Contact</h2>
      </div>
    </div>


    <div class="row">



      <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">


        <p><strong>Get the enquiry form as PDF:</strong></p>
        <a href="img/contact/pdf/franatech_enquiries.pdf" target="_blank" class="btn btn-primary">Open as PDF <i
            class="glyphicon glyphicon-file"></i></a>

        <hr>

        <p><strong>RMA - For sending equipment back to Franatech please use our Return of Material Authorization Form (RMA)</strong></p>
          <a href="img/contact/pdf/franatech_return-form.pdf" target="_blank" class="btn btn-primary">Open as PDF <i class="glyphicon glyphicon-file"></i></a>

  <hr>

        <ul class="imprint">
          <li><span class="boldUp">Franatech GmbH</span></li>
          <li>Gewerbestraße 5</li>
          <li>21391 Reppenstedt</li>
          <li>Germany</li>
        </ul>
        <ul class="imprint second">
          <li>Fax: +49 (0) 4131 - 7 89 28 19</li>
          <li><a href="mailto:info@franatech.com">info(at)franatech.com</a></li>
        </ul>

      </div>

      <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9 ">

        <!-- ############################## -->
        <!-- Contact Form  START            -->
        <!-- ############################## -->

        <?php

        process_si_contact_form(); // Process the form, if it was submitted

        if (isset($_SESSION['ctform']['error']) &&  $_SESSION['ctform']['error'] == true): /* The last form submission had 1 or more errors */ ?>

        <div class="error">There was a problem with your submission. Errors are displayed below in red.</div><br>
        <?php elseif (isset($_SESSION['ctform']['success']) && $_SESSION['ctform']['success'] == true): /* form was processed successfully */ ?>
        <div class="success">The captcha was correct and the message has been sent! The captcha was solved in
          <?php echo $_SESSION['ctform']['timetosolve'] ?> seconds.</div><br />

        <?php endif; ?>

        
        <form id="kontaktformular" class="formular row" method="post" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'] . $_SERVER['QUERY_STRING']) ?>"
          id="contact_form">

          <input type="hidden" name="do" value="contact">

          <p class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            Please answer the following as far as possible to help us provide the adequate solution.
          </p>

          <!-- fieldset questionary -->

          <fieldset class="sets">

                  <fieldset class="row-margin-left">
                    <legend class="col-xs-12 col-sm-12 col-md-12 col-lg-12 check-margin form-type">Type of Business</legend>
                    <div class="row left-right">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                          <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 radio first-checkbox inline" for="field_battery">
                            <input type="radio" id="field_business_pruchase" name="group_business_type" value="Purchase" <?php if(@$_SESSION['ctform']['ct_group_business_type'] == 'Purchase') { echo "checked"; } ?>>Purchase
                          </label>
                          <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 radio first-checkbox inline" for="field_battery">
                            <input type="radio" id="field_business_rental" name="group_business_type" value="Rental" <?php if(@$_SESSION['ctform']['ct_group_business_type'] == 'Rental') { echo "checked"; } ?>>Rental
                          </label>
                        </div>
                      </div>
                    </div>
                  </fieldset>

                  <fieldset class="row-margin-left">
                    <legend class="col-xs-12 col-sm-12 col-md-12 col-lg-12 check-margin form-type">You wish to measure:</legend>
                    <div class="row left-right">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                              <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline first-checkbox" for="field_methan">
                                <input type="checkbox" id="field_methan" name="group_whatToMeasure1" value="Methane" <?php if(!empty(@$_SESSION['ctform']['ct_group_whatToMeasure1'])) { echo "checked"; } ?>>Methane</label>
                              <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline lastItem item" for="field_CO<sub>2</sub>">
                                <input type="checkbox" id="field_CO<sub>2</sub>" name="group_whatToMeasure2" value="CO<sub>2</sub>" <?php if(!empty(@$_SESSION['ctform']['ct_group_whatToMeasure2'])) { echo "checked"; } ?> >CO<sub>2</sub></label>
                              <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline" for="field_H<sub>2</sub">
                                <input type="checkbox" id="field_H<sub>2</sub>" name="group_whatToMeasure3" value="H<sub>2</sub>" <?php if(!empty(@$_SESSION['ctform']['ct_group_whatToMeasure3'])) { echo "checked"; } ?>>H<sub>2</sub></label>
                        </div>
                      </div>
                    </div>
                  </fieldset>


                    <div class="clearfix visible-xs"></div>
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>

                    <div class="row left-right">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                          <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_where">Where:</label>
                          <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                                <input id="field_where" name="field_where" class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 text-input" type="text" value="<?php echo @$_SESSION['ctform']['ct_field_where']; ?>" />
                                <p class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 italic bottom">e.g. Lake, River, Coastal, Deep Sea, Aquaculture, Fish-tank</p>
                          </div>
                      </div>
                    </div>

                    <div class="clearfix visible-xs"></div>
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>



                    <fieldset class="row-margin-left">
                      <legend class="col-xs-12 col-sm-12 col-md-12 col-lg-12 check-margin form-type">Type of power supply you use on site:</legend>
                      <div class="row left-right">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                                <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 radio first-checkbox inline" for="field_battery">
                                  <input type="radio" id="field_battery" name="group_powerSupply" value="Battery" <?php if(@$_SESSION['ctform']['ct_group_powerSupply'] == 'Battery') { echo "checked"; } ?>>Battery</label>
                                <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 radio inline" for="field_powercable">
                                  <input type="radio" id="field_powercable" name="group_powerSupply" value="Power Cable" <?php if(@$_SESSION['ctform']['ct_group_powerSupply'] == 'Power Cable') { echo "checked"; } ?>>Power Cable</label>
                                <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 radio inline lastItem" for="field_generator">
                                  <input type="radio" id="field_generator" name="group_powerSupply" value="Generator" <?php if(@$_SESSION['ctform']['ct_group_powerSupply'] == 'Generator') { echo "checked"; } ?>>Generator</label>
                                <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 radio inline lastItem" for="field_others">
                                  <input type="radio" id="field_others" name="group_powerSupply" value="Others" <?php if(@$_SESSION['ctform']['ct_group_powerSupply'] == 'Others') { echo "checked"; } ?>>Others</label>

                          </div>
                        </div>
                      </div>
                    </fieldset>


                    <div class="clearfix visible-xs"></div>
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>



                    <div class="row left-right">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_typeOfDataAquisition">Type of data acquisition systems do you use on site?</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                          <input id="field_typeOfDataAquisition" name="field_typeOfDataAquisition" class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 text-input" type="text" value="<?php echo @$_SESSION['ctform']['ct_field_typeOfDataAquisition']; ?>">
                          <p class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 italic bottom">e.g. PC, SCADA, Data logger</p>
                        </div>
                      </div>
                    </div>


                    <div class="clearfix visible-xs"></div>
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>



                    <fieldset class="row-margin-left">
                      <legend class="col-xs-12 col-sm-12 col-md-12 col-lg-12 check-margin form-type">Output/interface:</legend>
                      <div class="row left-right">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox first-checkbox inline" for="field_05V">
                                    <input type="checkbox" id="field_05V" name="group_outputInterface1" value="0...5 V" <?php if(!empty(@$_SESSION['ctform']['ct_group_outputInterface1'])) { echo "checked"; } ?>>0...5 V</label>
                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline" for="field_420mA">
                                    <input type="checkbox" id="field_420mA" name="group_outputInterface2" value="4...20 mA" <?php if(!empty(@$_SESSION['ctform']['ct_group_outputInterface2'])) { echo "checked"; } ?>>4...20 mA</label>
                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline lastItem" for="field_RS232">
                                    <input type="checkbox" id="field_RS232" name="group_outputInterface3" value="RS 232" <?php if(!empty(@$_SESSION['ctform']['ct_group_outputInterface3'])) { echo "checked"; } ?>>RS 232</label>
                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline lastItem" for="field_RS458">
                                    <input type="checkbox" id="field_RS458" name="group_outputInterface4" value="RS 458" <?php if(!empty(@$_SESSION['ctform']['ct_group_outputInterface4'])) { echo "checked"; } ?>>RS 458</label>
                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline lastItem" for="Modbus">
                                    <input type="checkbox" id="field_Modbus" name="group_outputInterface5" value="Modbus" <?php if(!empty(@$_SESSION['ctform']['ct_group_outputInterface5'])) { echo "checked"; } ?>>Modbus</label>

                          </div>
                        </div>
                      </div>
                    </fieldset>


                    <div class="clearfix visible-xs"></div>
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>



                    <fieldset class="row-margin-left">
                      <legend class="col-xs-12 col-sm-12 col-md-12 col-lg-12 check-margin form-type">Do you need Accessories</legend>
                      <div class="row left-right">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox first-checkbox inline" for="group_accessories1">
                                    <input type="checkbox" id="group_accessories1" name="group_accessories1" value="Cable" <?php if(!empty(@$_SESSION['ctform']['ct_group_accessories1'])) { echo "checked"; } ?>>Cable</label>
                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline" for="group_accessories2">
                                    <input type="checkbox" id="group_accessories2" name="group_accessories2" value="Data Logger" <?php if(!empty(@$_SESSION['ctform']['ct_group_accessories2'])) { echo "checked"; } ?>>Data Logger</label>
                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline lastItem" for="group_accessories3">
                                    <input type="checkbox" id="group_accessories3" name="group_accessories3" value="Transport Box" <?php if(!empty(@$_SESSION['ctform']['ct_group_accessories3'])) { echo "checked"; } ?>>Transport Box</label>
                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline lastItem" for="group_accessories4">
                                    <input type="checkbox" id="group_accessories4" name="group_accessories4" value="Underwater Pump" <?php if(!empty(@$_SESSION['ctform']['ct_group_accessories4'])) { echo "checked"; } ?>>Underwater Pump</label>
                                  <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 checkbox inline lastItem" for="group_accessories5">
                                    <input type="checkbox" id="group_accessories5" name="group_accessories5" value="Others" <?php if(!empty(@$_SESSION['ctform']['ct_group_accessories5'])) { echo "checked"; } ?>>Others</label>

                          </div>
                        </div>
                      </div>
                    </fieldset>                    
                    


                    
                    <div class="clearfix visible-xs"></div>
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>



                    <fieldset class="row-margin-left">
                      <legend class="col-xs-12 col-sm-12 col-md-12 col-lg-12 check-margin form-type">Do you need on site / remote services:</legend>
                      <div class="row left-right">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 radio first-checkbox inline" for="on_site_1">
                            <input type="radio" id="on_site_1" name="group_on_site_service" value="Yes" <?php if(@$_SESSION['ctform']['ct_group_on_site_service'] == 'Purchase') { echo "checked"; } ?>>Yes
                          </label>
                          <label class="col-xs-6 col-sm-3 col-md-3 col-lg-3 radio first-checkbox inline" for="on_site_2">
                            <input type="radio" id="on_site_2" name="group_on_site_service" value="No" <?php if(@$_SESSION['ctform']['ct_group_on_site_service'] == 'No') { echo "checked"; } ?>>No
                          </label>
                          </div>
                        </div>
                      </div>
                    </fieldset>  



                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>



                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_deploymentDepth">Max deployment depth?</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                          <input id="field_deploymentDepth" name="field_deploymentDepth" class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 text-input" type="text" value="<?php echo @$_SESSION['ctform']['ct_field_deploymentDepth']; ?>">
                        </div>
                    </div>
                  </div>



                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>



                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_scopeOfDeployment">Scope of deployment?</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                          <input id="field_scopeOfDeployment" name="field_scopeOfDeployment" class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 text-input" type="text" value="<?php echo @$_SESSION['ctform']['ct_field_scopeOfDeployment']; ?>">
                          <p class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 italic bottom">Long-term(How long), Short term</p>
                        </div>
                    </div>
                  </div>



                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>




                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_type">Type?</label>
                         <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <input id="field_type" name="field_type" class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 text-input" type="text" value="<?php echo @$_SESSION['ctform']['ct_field_type']; ?>">
                            <p class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 italic bottom">e.g. Monitoring at fix stations, buoy, Underwater bottom station, profiling on CTD, AUV, ROV, Other</p>
                        </div>
                    </div>
                  </div>



                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>




                   <div class="row left-right">
                     <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_gasConcentrationRate">Expected gas concentration range:</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <input class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 text-input" type="text" id="field_gasConcentrationRate" name="field_gasConcentrationRate" value="<?php echo @$_SESSION['ctform']['ct_field_gasConcentrationRate']; ?>">
                        </div>
                    </div>
                  </div>



                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>



                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_waterTemperature">Water temperature at location?</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <input class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 text-input" type="text" id="field_waterTemperature" name="field_waterTemperature" value="<?php echo htmlspecialchars(@$_SESSION['ctform']['ct_field_waterTemperature']); ?>">
                        </div>
                    </div>
                  </div>



                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>



                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_deliveryDate">Scheduled delivery date?</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <input class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 text-input" type="text" id="field_deliveryDate" name="field_deliveryDate" value="<?php echo @$_SESSION['ctform']['ct_field_deliveryDate']; ?>">
                        </div>
                    </div>
                  </div>


                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>
                  
                  

        </fieldset>
        <fieldset>
          
                  <legend class="col-xs-12 col-sm-12 col-md-12 col-lg-12 legendtopic">We offer professional assistance for initial setup, data interpretation, and long-term system care – tailored to your specific use case.</legend>
                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_moreInfo">Additional comments or questions:</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <textarea class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 text-input" rows="4" cols="50" id="field_moreInfo" name="field_moreInfo"><?php echo @$_SESSION['ctform']['ct_field_moreInfo']?></textarea>
                        </div>
                    </div>
                  </div>


                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>

          </fieldset>
            <!-- ENDE fieldset questionary  -->

          <!-- fielset contact data -->
          <fieldset class="sets">


                  <legend class="col-xs-12 col-sm-12 col-md-12 col-lg-12 legendtopic">Contact data</legend>





                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_company">Your company:</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <input class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 validate[required] text-input" type="text" name="field_company" id="field_company" value="<?php echo htmlspecialchars(@$_SESSION['ctform']['ct_field_company']) ?>">
                        </div>
                      </div>
                  </div>


                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>


                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label for="field_contactPerson" class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type">Contact Person:</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <input class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 validate[required] text-input" type="text" name="field_contactPerson" id="field_contactPerson" value="<?php echo htmlspecialchars(@$_SESSION['ctform']['ct_field_contactPerson']) ?>">
                        </div>
                    </div>
                  </div>
                  


                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>

                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type" for="field_position">Position</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <input class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 validate[required] text-input" type="text" name="field_position" id="field_position" value="<?php echo htmlspecialchars(@$_SESSION['ctform']['ct_field_position']) ?>">
                        </div>
                      </div>
                  </div>


                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>

                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label for="field_email" class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type">E-Mail:</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <input class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 validate[required,custom[email]] text-input" type="text" name="field_email" id="field_email" value="<?php echo htmlspecialchars(@$_SESSION['ctform']['ct_field_email']) ?>">
                        </div>
                    </div>
                  </div>


                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>

                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <label for="field_phone" class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type">Phone:</label>
                        <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <input class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 validate[required,custom[phone]] text-input" type="text" name="field_phone" id="field_phone" value="<?php echo htmlspecialchars(@$_SESSION['ctform']['ct_field_phone']) ?>">
                        </div>
                    </div>
                  </div>


                  <div class="clearfix visible-xs"></div>
                  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>


                  <div class="row left-right">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                        <label class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type">Security Question (captcha):</label>

                        <div class="col-xs-12 col-sm-12 col-md-7 col-lg-7 col-sm-offset-1 col-md-offset-1 col-lg-offset-2 marginLeft">
                        <?php
                          // show captcha HTML using Securimage::getCaptchaHtml()
                           require_once 'securimage/securimage.php';
                           $options = array();
                           $options['input_name']             = 'ct_captcha'; // change name of input element for form post
                           $options['disable_flash_fallback'] = false; // allow flash fallbac
                          
                           if (!empty($_SESSION['ctform']['captcha_error'])) {
                             // error html to show in captcha output
                             $options['error_html'] = $_SESSION['ctform']['captcha_error'];
                           }


                           echo "<div id='captcha_container_1'>\n";
                           echo Securimage::getCaptchaHtml($options, Securimage::HTML_IMG);

                           echo Securimage::getCaptchaHtml($options, Securimage::HTML_ICON_REFRESH);
                           echo Securimage::getCaptchaHtml($options, Securimage::HTML_AUDIO);
                           echo "\n</div>\n";

                          /*
                          // To render some or all captcha components individually
                          $options['input_name'] = 'ct_captcha_2';
                          $options['image_id']   = 'ct_captcha_2';
                          $options['input_id']   = 'ct_captcha_2';
                          $options['namespace']  = 'captcha2';

                          echo "<br>\n<div id='captcha_container_2'>\n";
                          echo Securimage::getCaptchaHtml($options, Securimage::HTML_IMG);

                          echo Securimage::getCaptchaHtml($options, Securimage::HTML_ICON_REFRESH);
                          echo Securimage::getCaptchaHtml($options, Securimage::HTML_AUDIO);

                          echo '<div style="clear: both"></div>';

                          echo Securimage::getCaptchaHtml($options, Securimage::HTML_INPUT_LABEL);
                          echo Securimage::getCaptchaHtml($options, Securimage::HTML_INPUT);
                          echo "\n</div>";
                          */
                        ?>
                        </div>
                      </div>
                  </div>
                  <div class="clearfix visible-xs"></div>
                  <div class="row left-right">
                          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <label for="field_captchaCode" id="label_code" class="col-xs-12 col-sm-3 col-md-3 col-lg-3 form-type">Enter Captcha:</label>
                            <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9">
                            <div class="col-xs-12 col-sm-11 col-md-9 col-lg-9 col-sm-offset-1 col-md-offset-3 col-lg-offset-3 marginLeft">
                            <?php echo Securimage::getCaptchaHtml($options, Securimage::HTML_INPUT_LABEL); ?>
                            <?php echo Securimage::getCaptchaHtml($options, Securimage::HTML_INPUT); ?>
                            </div>
                          </div>
                        </div>
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><hr></div>
                  </div>
          </fieldset>

          <!-- fielset data security -->
          <fieldset id="datenschutzerklaerung" class="row-margin-left">
            <legend class="col-xs-12 col-sm-12 col-md-12 col-lg-12 form-type">Privacy policy check</legend>
            <div class="row left-right">
              <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                <p class="col-xs-12 col-sm-12 col-md-12 col-lg-12">The relevant data protection regulations will be
                  respected, of course. More about this in our<a href="imprint.html" target="_blank"> privacy
                    policy.</a></p>
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                  <label class="col-xs-12 col-sm-12 col-md-12 col-lg-12 checkbox inline agb-no-bottom"
                    for="field_datenschutz">
                    <input class="validate[required]" type="checkbox" id="field_datenschutz" name="field_datenschutz"
                      value="Yes, I agree to the information described in the Privacy Policy.">
                    Yes, I agree to the information described in the Privacy Policy.
                  </label>
                </div>
              </div>
            </div>
          </fieldset>


          <div class="clearfix visible-xs"></div>
          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <hr>
          </div>

          <div class="clearfix col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <input
              class=" submit btn btn-primary col-xs-12 col-sm-9 col-md-4 col-lg-4 col-sm-offset-1 col-md-offset-2 col-lg-offset-2"
              type="submit" value="Send the form!">
          </div>
          <hr>
          <small>202006161515</small>
        </form>
        <!-- ############################## -->
        <!-- Contact Form  END            -->
        <!-- ############################## -->
      </div>
    </div>
  </div>



  <!-- /.container -->

  <!-- FOOTER
================================================== -->
  <footer>
    <div class="container">
      <div class="row">
        <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 footer-container hidden-xs">
          <ul class="navFoo liste text-alignment">
            <li><a href="home.html">Home</a></li>
            <li><a href="presentation.html">Company</a></li>
            <li><a href="case_studies.html">Case Studies</a></li>
            <li><a href="our_users_publish.html">Archive</a></li>
            <li><a href="sensors.html">Products</a></li>
            <li class="active"><a href="enquiry-contact.php">Contact</a></li>
            <li><a href="imprint.html">Imprint</a></li>
            <li><a href="privacy_policy.html">Privacy Policy</a></li>
            <li><a href="/img/AGB-Franatech.pdf" target="blank">AGB's</a></li>
          </ul>
        </div>
        <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 footer-container hidden-xs">
          <ul class="navFoo liste middle">
            <li class="">
              <div class="row">
                <div class="hidden-xs col-sm-12 col-md-12 col-lg-12">
                  <img class="col-xs-6 col-sm-9 col-md-9 col-lg-9 logo-margin-bottom" src="img/logoFoo.png"
                    alt="Logo Franatech white">
                </div>
              </div>
            </li>
            <li class="active"><a href="enquiry-contact.php">Contact</a></li>
            <li><a href="imprint.html">Imprint</a></li>
            <li><a href="privacy_policy.html">Privacy Policy</a></li>
          </ul>
        </div>
        <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 footer-container last">
          <address>
            <p><strong>Franatech AS</strong><br>
              Fridtjof Nansens plass 5<br>
              0160 Oslo · Norway</p>
            <p>Tel: +47 - 900 - 21 49 2</p>
            <p><a href="mailto:b.skjeie@franatech.com">b.skjeie (at) franatech.com</a><br><br></p>
            <p><strong>Franatech GmbH</strong><br>
            Gewerbestraße 5<br>
            21391 Reppenstedt · Germany</p>
            <p>Tel: +49 (0) 4131 - 7 89 28 0<br>
              Fax: +49 (0) 4131 - 7 89 28 19</p>
            <p><a href="mailto:info@franatech.com">info(at)franatech.com</a></p>
          </address>
        </div>
      </div>
    </div>

  </footer>


  <script src="js/vendor/jquery-1.9.1.min.js"></script>

  <script type="text/javascript" src="js/bootstrap.min.js"></script>
  <script type="text/javascript" src="js/plugins.js"></script>
  <script src="js/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
  <script src="js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript" src="js/main.js"></script>
  <script type="text/javascript">
    jQuery(document).ready(function () {
      // binds form submission and fields to the validation engine
      jQuery("#kontaktformular").validationEngine();
    });

    // Inital refresh of Captcha
    securimageRefreshCaptcha('captcha_image', 'captcha_image_audioObj'); 
    jQuery("#captcha_container_1 a").blur(); 
  </script>
</body>

</html>

</body>

</html>

<?php

// The form processor PHP code
function process_si_contact_form()
{
  $_SESSION['ctform'] = array(); // re-initialize the form session data


  if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_POST['do'] == 'contact') {
  	// if the form has been submitted
    
    foreach($_POST as $key => $value) {
      if (!is_array($key)) {
      	// sanitize the input data
        if ($key != 'field_moreInfo') $value = strip_tags($value);
        $_POST[$key] = htmlspecialchars(stripslashes(trim($value)));
      }
    }

    $captcha                    = @$_POST['ct_captcha']; // the user's entry for the captcha code

    $capId                      = @$_POST['captcha_id']; // the captcha ID to check

    $field_moreInfo             = @$_POST['field_moreInfo'];
    // Business type
    $group_business_type        = @$_POST['group_business_type'];

    // What to measure
    $group_whatToMeasure1       = @$_POST['group_whatToMeasure1'];
    $group_whatToMeasure2       = @$_POST['group_whatToMeasure2'];
    $group_whatToMeasure3       = @$_POST['group_whatToMeasure3'];

    $field_where                = @$_POST['field_where'];
    $group_powerSupply          = @$_POST['group_powerSupply'];
    $field_typeOfDataAquisition = @$_POST['field_typeOfDataAquisition'];
    // Output interface
    $group_outputInterface1     = @$_POST['group_outputInterface1'];
    $group_outputInterface2     = @$_POST['group_outputInterface2'];
    $group_outputInterface3     = @$_POST['group_outputInterface3'];
    $group_outputInterface4     = @$_POST['group_outputInterface4'];
    $group_outputInterface5     = @$_POST['group_outputInterface5'];

    // On Site Service
    $group_on_site_service      = @$_POST['group_on_site_service'];
    

    // Accessories
    $group_accessories1 = @$_POST['group_accessories1'];
    $group_accessories2 = @$_POST['group_accessories2'];
    $group_accessories3 = @$_POST['group_accessories3'];
    $group_accessories4 = @$_POST['group_accessories4'];
    $group_accessories5 = @$_POST['group_accessories5'];

    $field_deploymentDepth      = @$_POST['field_deploymentDepth'];
    $field_scopeOfDeployment    = @$_POST['field_scopeOfDeployment'];

    $field_type                 = @$_POST['field_type'];
    $field_gasConcentrationRate = @$_POST['field_gasConcentrationRate'];
    $field_waterTemperature     = @$_POST['field_waterTemperature'];
    $field_deliveryDate         = @$_POST['field_deliveryDate'];
    // Contact form
    $field_company              = @$_POST['field_company'];
    $field_position             = @$_POST['field_position'];
    $field_contactPerson        = @$_POST['field_contactPerson'];
    $field_email                = @$_POST['field_email'];
    $field_phone                = @$_POST['field_phone'];
    $field_datenschutz          = @$_POST['field_datenschutz'];

    $errors = array();  // initialize empty error array

    if (isset($GLOBALS['DEBUG_MODE']) && $GLOBALS['DEBUG_MODE'] == false) {
      // only check for errors if the form is not in debug mode

      if (strlen($field_contactPerson) < 3) {
        // name too short, add error
        $errors['name_error'] = 'Your name is required';
      }

      if (strlen($field_company) == 0) {
        // name too short, add error
        $errors['company_error'] = 'Your company is required';
      }

      if (strlen($field_email) == 0) {
        // no email address given
        $errors['email_error'] = 'Email address is required';
      } else if ( !preg_match('/^(?:[\w\d-]+\.?)+@(?:(?:[\w\d]\-?)+\.)+\w{2,63}$/i', $field_email)) {
        // invalid email format
        $errors['email_error'] = 'Email address entered is invalid';
      }

    }

// Only try to validate the captcha if the form has no errors
    // This is especially important for ajax calls
    if (sizeof($errors) == 0) {
      $securimage = new Securimage();

      /**
       * Validate the user input ($captcha) against the submitted captcha ID ($capId).
       * The third parameter (true) tells Securimage to delete the data for this
       * captcha ID even if the guess was incorrect.  Since the form POSTs to itself
       * and reloads the page, the old ID is never used again and no longer needed.
       *
       * $securimage->check() returns TRUE if the code is correct, or FALSE if it was
       * incorrect.  Only let the form pass if check() returns TRUE.
       *
       */
      if ($securimage->check($captcha, $capId, true) == false) {
        $errors['captcha_error'] = 'Incorrect security code entered<br />';
      }
    }

    if (sizeof($errors) == 0) {
      // no errors, send the form
      $time       = date('r');
      $message    = "<strong>Type of Business:</strong> $group_business_type <br>"
                    . "<strong>What to Measure:</strong> $group_whatToMeasure1 $group_whatToMeasure2 $group_whatToMeasure3 <br><br>"
                    . "<strong>Where:</strong> $field_where <br>"
                    . "<strong>Power Supply:</strong> $group_powerSupply <br>"
                    . "<strong>Data Aquisition:</strong> $field_typeOfDataAquisition <br>"
                    . "<strong>Output Interface:</strong> $group_outputInterface1 $group_outputInterface2 $group_outputInterface3 $group_outputInterface4 <br>"
                    . "<strong>Service On-Site:</strong> $group_on_site_service <br>"
                    . "<strong>Deployment depth:</strong> $field_deploymentDepth <br>"
                    . "<strong>Scope of deployment:</strong> $field_scopeOfDeployment <br>"
                    . "<strong>Type:</strong> $field_type <br>"
                    . "<strong>Gas concentration:</strong> $field_gasConcentrationRate <br>"
                    . "<strong>Water temperature:</strong> $field_waterTemperature <br>"
                    . "<strong>Delivery Date:</strong> $field_deliveryDate <br><br>"
                    . "<strong>More Info:</strong> $field_moreInfo <br><br>"
                    . "<strong>Company:</strong> $field_company <br>"
                    . "<strong>Contact person:</strong> $field_contactPerson <br>"
                    . "<strong>Position:</strong> $field_position <br>"
                    . "<strong>E-Mail:</strong> $field_email <br>"
                    . "<strong>Phone:</strong> $field_phone <br>"
                    . "<strong>Datenschutz:</strong> $field_datenschutz <br>"

                    . "<br>";

      $message = wordwrap($message, 70);

      if (isset($GLOBALS['DEBUG_MODE']) && $GLOBALS['DEBUG_MODE'] == false) {
      	// send the message with mail()
        mail($GLOBALS['ct_recipient'], $GLOBALS['ct_msg_subject'], $message, "From: {$GLOBALS['ct_recipient']}\r\nReply-To: {$field_email}\r\nContent-type: text/html; charset=UTF-8\r\nMIME-Version: 1.0\r\nContent-transfer-encoding: 8bit");
      }

      $_SESSION['ctform']['timetosolve'] = $securimage->getTimeToSolve();
      $_SESSION['ctform']['error'] = false;  // no error with form
      $_SESSION['ctform']['success'] = true; // message sent
    } else {
      // save the entries, this is to re-populate the form

      $_SESSION['ctform']['ct_field_moreInfo']             = $field_moreInfo;
      $_SESSION['ctform']['ct_group_business_type']        = $group_business_type;

      $_SESSION['ctform']['ct_group_whatToMeasure1']       = $group_whatToMeasure1;
      $_SESSION['ctform']['ct_group_whatToMeasure2']       = $group_whatToMeasure2;
      $_SESSION['ctform']['ct_group_whatToMeasure3']       = $group_whatToMeasure3;

      $_SESSION['ctform']['ct_field_where']                = $field_where;
      $_SESSION['ctform']['ct_group_powerSupply']          = $group_powerSupply;
      $_SESSION['ctform']['ct_field_typeOfDataAquisition'] = $field_typeOfDataAquisition;
      
      $_SESSION['ctform']['ct_group_outputInterface1']     = $group_outputInterface1;
      $_SESSION['ctform']['ct_group_outputInterface2']     = $group_outputInterface2;
      $_SESSION['ctform']['ct_group_outputInterface3']     = $group_outputInterface3;
      $_SESSION['ctform']['ct_group_outputInterface4']     = $group_outputInterface4;
      $_SESSION['ctform']['ct_group_outputInterface5']     = $group_outputInterface5;

      $_SESSION['ctform']['ct_group_accessories1']     = $group_accessories1;
      $_SESSION['ctform']['ct_group_accessories2']     = $group_accessories2;
      $_SESSION['ctform']['ct_group_accessories3']     = $group_accessories3;
      $_SESSION['ctform']['ct_group_accessories4']     = $group_accessories4;
      $_SESSION['ctform']['ct_group_accessories5']     = $group_accessories5;

      $_SESSION['ctform']['ct_group_on_site_service']     = $group_on_site_service;
    

      $_SESSION['ctform']['ct_field_deploymentDepth']      = $field_deploymentDepth;
      $_SESSION['ctform']['ct_field_scopeOfDeployment']    = $field_scopeOfDeployment;

      $_SESSION['ctform']['ct_field_type']                 = $field_type;
      $_SESSION['ctform']['ct_field_gasConcentrationRate'] = $field_gasConcentrationRate;
      $_SESSION['ctform']['ct_field_waterTemperature']     = $field_waterTemperature;
      $_SESSION['ctform']['ct_field_deliveryDate']         = $field_deliveryDate;
      $_SESSION['ctform']['ct_field_company']              = $field_company;
      $_SESSION['ctform']['ct_field_contactPerson']        = $field_contactPerson;
      $_SESSION['ctform']['ct_field_position']             = $field_position;
      $_SESSION['ctform']['ct_field_email']                = $field_email;
      $_SESSION['ctform']['ct_field_phone']                = $field_phone;
      $_SESSION['ctform']['ct_field_datenschutz']          = $field_datenschutz;

      foreach($errors as $key => $error) {
      	// set up error messages to display with each field
        $_SESSION['ctform'][$key] = "<span class=\"error\">$error</span>";
      }

      $_SESSION['ctform']['error'] = true; // set error flag
    }
  } // POST
}

$_SESSION['ctform']['success'] = false; // clear success value after running
