<?php
session_start('upgrade');
?>
<?php include_once('mysqlUtils.php'); ?>
<?php
if(isset($_POST['acode']))
{
//$sql = 'SELECT * FROM derrickupgrade WHERE prospect = "' . $_POST['acode'] . '"';
//$re = mysql_query($sql);
if(strtoupper($_POST['acode']) == "KR48")
{
$_SESSION['upgrade']['user'] = array();
header("location: form.php");
exit;
}
else
{
$_SESSION['upgrade']['error'] = '* Invalid access code. Please try again.';
}
}
?>
<?php include_once('header.php'); ?>
<br>
<div style="font-size:12pt;">
<!--Please Enter the Access Code from the notice you are responding to in the box below.-->
Click below to register and receive a $1,000 savings voucher.
</div>
<br>
<center>
<form method="POST">
<table cellspacing="0" cellpadding="0" style="border:1px solid #aaaaaa;background-color:#eeeeee;width:300px;height:100px;color:#333333">
<tr>
<td>Access Code
<br>
<input type="text" name="acode" style="width:200px">
<br><font style="color:red;font-weight:bold"><?= $_SESSION['upgrade']['error'] ?>
<?php unset($_SESSION['upgrade']['error']) ?>
</td>
</tr>
<tr>
<td><input type="submit" value="Enter"></td>
</tr>
</table>
</form>
</center>
<?php
if(!isset($_SESSION['webhit']))
{
$_SESSION['webhit'] = true;
?>
<iframe height="0" width="0" src="http://ar.absoluteresults.com/misc/webHits.php?url=<?= str_replace(array('www.'),'',$_SERVER['HTTP_HOST']); ?>&dealer=halifax&eventID=4135" frameborder="0"></iframe>
<?php
}
?>
<?php include_once('footer.php'); ?>