<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- #BeginTemplate "main.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>Redbrook Technology Developing g</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script>
<!-- AddThis Smart Layers BEGIN -->

<!-- Go to http://www.addthis.com/get/smart-layers to customize -->

<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4e60cf7f21fc544b"></script>
<script type="text/javascript">
  addthis.layers({
    'theme' : 'transparent',
    'share' : {
      'position' : 'left',
      'numPreferredServices' : 5
    }, 
    'follow' : {
      'services' : [
        {'service': 'facebook', 'id': 'RedbrookTechnology'},
        {'service': 'twitter', 'id': 'jimbojetson'},
        {'service': 'linkedin', 'id': 'jimdunstan'},
        {'service': 'google_follow', 'id': 'jimdunstan'}
      ]
    },  
    'whatsnext' : {},  
    'recommended' : {} 
  });
</script>
<!-- AddThis Smart Layers END -->

</head>
<body>
<div class="main">

  <div class="header">
    <div class="header_resize">
      <div class="logo"><h1><a href="index.html"><span>Redbrook</span> Technology<small><br/>Developing great software 
		  to make your business more competetive  </small></a>
		  
		  </h1></div>
      <div class="menu_nav">
        <ul>
        <!-- #BeginEditable "tmenu" -->
          <li class="active">
		  <a href="index.html" name="home">Home</a></li>
          <li>
		  <a href="about.html">About Us</a></li>
          <li>
		  <a href="services.html">Services</a></li>
          <li>
		  <a href="products.html">Products</a></li>
          <li>
		  <a href="contact.html">Contact Us</a></li>
          <!-- #EndEditable -->
        </ul>
      </div>
      <div class="clr"></div>
    </div>
  </div>

  <div class="hbg">&nbsp;</div>

  <div class="content">
    <div class="content_resize">
      <div class="mainbar">
      <!-- #BeginEditable "main" -->
        <?php


// database settings
$host="localhost";
$ln="andacco1_admin";
$pw="BadgersArse2012#~@";
$signupdb="andacco1_signups";


$to = "info@redbrooktech.com";
$from = "info@redbrooktech.com";

$headers = "From: " . $from . "\r\n";

$subject = "New subscription";
$body = "New Redbrook Technology user subscription: " . $_POST['email'];

try {
		
		mysql_connect("$host","$ln","$pw") or die("Unable to connect to database");
		mysql_select_db("$signupdb") or die("Unable to select database");
	
	} catch (Exception $e) {
    exit(0);
}
  $sql="INSERT INTO email (email,site) VALUES ('" . $_POST['email'] . "','RBT')";
		
if( filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) )
{ 
    if (mail($to, $subject, $body, $headers, "-f " . $from))
    {
		    if (!mysql_query($sql)) {
            echo mysql_error();
            exit(0);
        }
        echo '<p>Your e-mail (' . $_POST['email'] . ') has been added to our mailing list!</p>';
    }
    else
    {
       echo 'There was a problem with your e-mail (' . $_POST['email'] . ')';   
    }
}
else
{
   echo 'There was a problem with your e-mail (' . $_POST['email'] . ')';   
}

?>

        <!-- #EndEditable -->
      </div>
      <div class="sidebar">
        <div class="gadget">
        <!-- #BeginEditable "sidebar" -->
          <h2 class="star"><span>Services</span></h2><div class="clr"></div>
          <ul class="sb_menu">
            
            <li><a href="techsupport.html">Technical Support</a></li>
            <li><a href="software_development.html">Software Development</a></li>
            <li><a href="webdev.html">Web Development</a></li>
            <li><a href="seoservices.html">SEO</a></li>
            
          </ul>
          <!-- #EndEditable -->
        </div>
        <div class="gadget">
        <!-- #BeginEditable "gadget" -->
          <h2 class="star"><span>Our Products</span></h2><div class="clr"></div>
          <ul class="ex_menu">
            <li>
			<a href="AccessConverter.html" title="Evolution">Evolution
			MS Access Converter</a> <br />Convert your legacy Access Apps. to VB.NET Quickly and efficiently.</li>
            <li>
			<a href="repairtracking.html">TrailBlazer Repair Tracking System</a><br />Keep track of repair items in your shop with ease, and keep your staff and clients fully informed.</li>
            <li>
			<a href="codespark.html" title="Code Generator">CodeSpark Forms Generator</a><br />ASP.NET Web Forms and VB/C# Code Generator.</li>
          </ul>
          <!-- #EndEditable -->
        </div>
      </div>
      <div class="clr"></div>
    </div>
  </div>

  <div class="fbg">
    <div class="fbg_resize">
    <!-- #BeginEditable "bottom" -->
      <div class="col c1">
      </div>
      <div class="col c2">
      </div>
      <div class="col c3">
      </div>
      <div class="clr"></div>
      <!-- #EndEditable -->
    </div>
  </div>
  <div class="footer">
    <div class="footer_resize">
      <span style="float:right;text-align:center"> Copyright &copy; <a href="http://www.redbrooktech.com">Redbrook Technology</a>.<br/>Redbrook Technology, 99 Duckpool Road, Newport,UK<br/>		Tel: 02921&nbsp;252055 or 07782 170638
</span>
      <ul class="fmenu">
      <!-- #BeginEditable "fmenu" -->
        <li class="active">
		<a href="index.html">Home</a></li>
        <li>
		<a href="about.html">About</a></li>
        <li>
		<a href="services.html">Services</a></li>
        <li>
		<a href="products.html">Products</a></li>
        <li>
		<a href="contactx.html">Contacts</a></li>
        <!-- #EndEditable -->
      </ul>
      <div class="clr"></div>
    </div>
  </div>
</div>
<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project=7242285; 
var sc_invisible=1; 
var sc_security="eb7d8f79"; 
</script>
<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script>
<noscript><div class="statcounter"><a title="free hit
counter" href="http://statcounter.com/" target="_blank"><img
class="statcounter"
src="http://c.statcounter.com/7242285/0/eb7d8f79/1/"
alt="free hit counter"></a></div></noscript>
<!-- End of StatCounter Code for Default Guide -->

</body>
<!-- #EndTemplate -->
</html>
